Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1494 from Jellyfishboy/master

Added rescue to prevent crashing on Windows
  • Loading branch information...
commit 72c3fe9a54f9be8a525af3b66b284a42631794e4 2 parents 15111f3 + 8911d7d
@mperham authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/sidekiq/cli.rb
View
8 lib/sidekiq/cli.rb
@@ -46,8 +46,12 @@ def run
self_read, self_write = IO.pipe
%w(INT TERM USR1 USR2 TTIN).each do |sig|
- trap sig do
- self_write.puts(sig)
+ begin
+ trap sig do
+ self_write.puts(sig)
+ end
+ rescue ArgumentError
+ puts "Signal #{sig} not supported"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.