use sigterm as opposed to hup, cause spork was not handling the hup correctly
This commit is contained in:
parent
dd29e0b3b9
commit
1eecb0cee5
|
@ -249,7 +249,8 @@ class Autospec::Runner
|
||||||
|
|
||||||
def process_spec(spec)
|
def process_spec(spec)
|
||||||
last_failed = false
|
last_failed = false
|
||||||
if run_spec(spec) == 0
|
result = run_spec(spec)
|
||||||
|
if result == 0
|
||||||
@queue.pop
|
@queue.pop
|
||||||
else
|
else
|
||||||
last_failed = true
|
last_failed = true
|
||||||
|
@ -349,7 +350,7 @@ class Autospec::Runner
|
||||||
|
|
||||||
def stop_spork
|
def stop_spork
|
||||||
pid = File.read(spork_pid_file).to_i
|
pid = File.read(spork_pid_file).to_i
|
||||||
Process.kill("SIGHUP",pid)
|
Process.kill("SIGTERM",pid)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_spork
|
def start_spork
|
||||||
|
|
Loading…
Reference in New Issue