aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-10-21 11:53:41 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-10-24 09:34:38 +0000
commitaf2638df2c9e396d35a593598d4d30a078d855e7 (patch)
treea6c16b8a5849a76c2dfd1a6e68ae5b971bb92d06 /executor
parent3fd4a86f3f8adfcfba5c642babd90bb4f5eecd3c (diff)
executor: don't kill executor exec process group
Killing a process group (negative pid) only makes sense when the process is a group leader (called setsid/setpgrp/setpgid). Executor exec process is not a group leader, so don't try to kill its group. For our controlled executor subprocesses we rely on PR_SET_PDEATHSIG for reliable killing of all child subprocesses.
Diffstat (limited to 'executor')
-rw-r--r--executor/subprocess.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/executor/subprocess.h b/executor/subprocess.h
index 2553422a9..5e638c1f5 100644
--- a/executor/subprocess.h
+++ b/executor/subprocess.h
@@ -76,7 +76,6 @@ public:
{
if (!pid_)
fail("subprocess hasn't started or already waited");
- kill(-pid_, SIGKILL);
kill(pid_, SIGKILL);
int pid = 0;
int wstatus = 0;