aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/mtest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 110a94e..9dd4cbd 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -304,7 +304,8 @@ class SingleTestRunner:
subprocess.call(['taskkill', '/F', '/T', '/PID', str(p.pid)])
else:
try:
- os.killpg(os.getpgid(p.pid), signal.SIGKILL)
+ # Kill the process group that setsid() created.
+ os.killpg(p.pid, signal.SIGKILL)
except ProcessLookupError:
# Sometimes (e.g. with Wine) this happens.
# There's nothing we can do (maybe the process