Skip to content

Commit

Permalink
Fix an edge case.
Browse files Browse the repository at this point in the history
When sponges is use in foreground, and supervisor receive a kill signal,
it properly exits. But, the runner responsible of keeping sponges in
foreground will end up trying kill the supervisor on a "Ctrl-C". But,
the supervisor is already gone, and so ruby raise an "Errno::ESRCH"
exception.

Signed-off-by: chatgris <jboyer@af83.com>
  • Loading branch information
chatgris committed Jun 2, 2013
1 parent 9e5aade commit d55ad33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sponges/runner.rb
Expand Up @@ -38,6 +38,8 @@ def trap_signals

def kill_supervisor
Process.kill :QUIT, @supervisor
rescue Errno::ESRCH => e
# Don't panic
end

def default_options
Expand Down

0 comments on commit d55ad33

Please sign in to comment.