lib/invoker/commander.rb in invoker-0.0.2 vs lib/invoker/commander.rb in invoker-0.0.3
- old
+ new
@@ -154,10 +154,15 @@
end
end
def install_interrupt_handler
Signal.trap("INT") do
- @workers.each {|key,worker| Process.kill("INT", worker.pid) }
+ @workers.each {|key,worker|
+ begin
+ Process.kill("INT", worker.pid)
+ rescue Errno::ESRCH
+ end
+ }
exit(0)
end
end
end