mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Issue 3775 - Fixed Ctrl-C exception on Windows.
This commit is contained in:
parent
e18d9aca2f
commit
6b3e453eef
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ module Sidekiq
|
||||||
sigs.each do |sig|
|
sigs.each do |sig|
|
||||||
begin
|
begin
|
||||||
trap sig do
|
trap sig do
|
||||||
self_write.puts(sig)
|
self_write.write("#{sig}\n")
|
||||||
end
|
end
|
||||||
rescue ArgumentError
|
rescue ArgumentError
|
||||||
puts "Signal #{sig} not supported"
|
puts "Signal #{sig} not supported"
|
||||||
|
|
Loading…
Reference in a new issue