about summary refs log tree commit homepage
path: root/lib/mongrel/configurator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mongrel/configurator.rb')
-rw-r--r--lib/mongrel/configurator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mongrel/configurator.rb b/lib/mongrel/configurator.rb
index 78895b9..adb2e1f 100644
--- a/lib/mongrel/configurator.rb
+++ b/lib/mongrel/configurator.rb
@@ -356,7 +356,7 @@ module Mongrel
       if RUBY_PLATFORM !~ /mswin/
         # graceful shutdown
         trap("TERM") { log "TERM signal received."; stop }
-
+        trap("USR1") { log "USR1 received, toggling $mongrel_debug_client to #{!$mongrel_debug_client}"; $mongrel_debug_client = !$mongrel_debug_client }
         # restart
         trap("USR2") { log "USR2 signal received."; stop(true) }