Skip to content

Commit 13e64fa

Browse files
committed
only unregister signal handlers when using new term child functionality
1 parent 9001fcf commit 13e64fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def work(interval = 5.0, &block)
148148
nil
149149
end
150150
else
151-
unregister_signal_handlers unless @cant_fork
151+
unregister_signal_handlers if !@cant_fork && term_child
152152
procline "Processing #{job.queue} since #{Time.now.to_i}"
153153
redis.client.reconnect # Don't share connection with parent
154154
perform(job, &block)

0 commit comments

Comments
 (0)