From 1eecb0cee525914d1e275fd8c19dbd70eafa987b Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 15 Aug 2013 12:55:45 +1000 Subject: [PATCH] use sigterm as opposed to hup, cause spork was not handling the hup correctly --- lib/autospec/runner.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/autospec/runner.rb b/lib/autospec/runner.rb index 761f21f729..a7f94dc804 100644 --- a/lib/autospec/runner.rb +++ b/lib/autospec/runner.rb @@ -249,7 +249,8 @@ class Autospec::Runner def process_spec(spec) last_failed = false - if run_spec(spec) == 0 + result = run_spec(spec) + if result == 0 @queue.pop else last_failed = true @@ -349,7 +350,7 @@ class Autospec::Runner def stop_spork pid = File.read(spork_pid_file).to_i - Process.kill("SIGHUP",pid) + Process.kill("SIGTERM",pid) end def start_spork