mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
restore USR2 handling, fixes #4334
This commit is contained in:
parent
09fc8a8d05
commit
bfeb9d003b
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
---------
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue