use sigterm as opposed to hup, cause spork was not handling the hup correctly

This commit is contained in:
Sam 2013-08-15 12:55:45 +10:00
parent dd29e0b3b9
commit 1eecb0cee5
1 changed files with 3 additions and 2 deletions

View File

@ -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