Skip to content

Commit

Permalink
experimentally bump up timeouts to 5 sec to see if #41 gets better
Browse files Browse the repository at this point in the history
  • Loading branch information
alexch committed Mar 6, 2014
1 parent 9f5f198 commit 7bbef3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rerun/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ def stop
if @pid && (@pid != 0)
notify "stopping", "All good things must come to an end." unless @restarting
begin
timeout(4) do # todo: escalation timeout setting
timeout(5) do # todo: escalation timeout setting
# start with a polite SIGTERM
signal(default_signal) && Process.wait(@pid)
end
rescue Timeout::Error
begin
timeout(2) do
timeout(5) do
# escalate to SIGINT aka control-C since some foolish process may be ignoring SIGTERM
signal("INT") && Process.wait(@pid)
end
Expand Down

0 comments on commit 7bbef3f

Please sign in to comment.