Commit 3cdb9171 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Add a delay when TERMinating a process

Otherwise we might end up missing the signal and fail later when
reset the process.  All tests are passing in OSX now.
parent 3f3213da
...@@ -756,6 +756,7 @@ cmd_process(CMD_ARGS) ...@@ -756,6 +756,7 @@ cmd_process(CMD_ARGS)
} }
if (!strcmp(*av, "-stop")) { if (!strcmp(*av, "-stop")) {
process_kill(p, "TERM"); process_kill(p, "TERM");
sleep(1);
continue; continue;
} }
if (!strcmp(*av, "-wait")) { if (!strcmp(*av, "-wait")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment