Commit 520de7f7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Re-add a detail I missed: Kill the process group instead of just the direct child process.

parent 3efd809d
......@@ -266,7 +266,7 @@ process_kill(const struct process *p, const char *sig)
else
vtc_log(p->vl, 0, "Could not grok signal (%s)", sig);
if (kill(p->pid, j) < 0)
if (kill(-p->pid, j) < 0)
vtc_log(p->vl, 0, "Failed to send signal %d (%s)", j, strerror(errno));
else
vtc_log(p->vl, 4, "Sent signal %d", j);
......
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