Commit f6d373cc authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

restore: prevent killing of nonpositive PIDs

I don't like surprises.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 0ae2bad0
......@@ -877,6 +877,7 @@ out:
kill(root_item->pid.real, SIGKILL);
} else {
for_each_pstree_item(pi)
if (pi->pid.virt > 0)
kill(pi->pid.virt, SIGKILL);
}
return 1;
......
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