We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9001fcf commit 13e64faCopy full SHA for 13e64fa
lib/resque/worker.rb
@@ -148,7 +148,7 @@ def work(interval = 5.0, &block)
148
nil
149
end
150
else
151
- unregister_signal_handlers unless @cant_fork
+ unregister_signal_handlers if !@cant_fork && term_child
152
procline "Processing #{job.queue} since #{Time.now.to_i}"
153
redis.client.reconnect # Don't share connection with parent
154
perform(job, &block)
0 commit comments