1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

restore USR2 handling, fixes

This commit is contained in:
Mike Perham 2019-10-11 13:30:30 -07:00
parent 09fc8a8d05
commit bfeb9d003b
2 changed files with 7 additions and 0 deletions
Changes.md
lib/sidekiq

View file

@ -2,6 +2,11 @@
[Sidekiq Changes](https://github.com/mperham/sidekiq/blob/master/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md)
HEAD
---------
- Fix rolling restart functionality, broken by refactoring in 6.0.0. [#4334]
6.0.1
---------

View file

@ -41,6 +41,8 @@ module Sidekiq
self_read, self_write = IO.pipe
sigs = %w[INT TERM TTIN TSTP]
# USR1 and USR2 don't work on the JVM
sigs << "USR2" unless jruby?
sigs.each do |sig|
trap sig do
self_write.puts(sig)