Skip to content
Browse files

reset child death log when user restarts daemon

  • Loading branch information...
1 parent 6b86241 commit 6e63dc86c8322a0cbc693617b2d0e377139b8233 guns committed Oct 4, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/delayed/daemon_tasks.rb
View
1 lib/delayed/daemon_tasks.rb
@@ -111,6 +111,7 @@
# restart children on SIGHUP
trap :HUP do
logger.call 'SIGHUP received! Restarting workers.'
+ times_dead.clear if times_dead # reset death log on user restart
Process.kill :TERM, *children.keys
end

0 comments on commit 6e63dc8

Please sign in to comment.
Something went wrong with that request. Please try again.