diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-11 23:48:36 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-11 23:48:36 -0700 |
commit | 7096b494fac72a9b4444f2b5b7f32d3bdc17d44a (patch) | |
tree | 16660ea644a16f237b71f3203e13781322234591 /lib/rainbows/base.rb | |
parent | a267b68ad921d115615abfc15de25a947e86fe38 (diff) | |
download | rainbows-7096b494fac72a9b4444f2b5b7f32d3bdc17d44a.tar.gz |
Just like in Unicorn...
Diffstat (limited to 'lib/rainbows/base.rb')
-rw-r--r-- | lib/rainbows/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index 4d5fec1..f24de31 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -32,7 +32,7 @@ module Rainbows trap(:USR1) { reopen_worker_logs(worker.nr) rescue nil } # closing anything we IO.select on will raise EBADF trap(:QUIT) { HttpServer::LISTENERS.map! { |s| s.close rescue nil } } - [:TERM, :INT].each { |sig| trap(sig) { exit(0) } } # instant shutdown + [:TERM, :INT].each { |sig| trap(sig) { exit!(0) } } # instant shutdown logger.info "Rainbows! #@use worker_connections=#@worker_connections" end |