Skip to content
Snippets Groups Projects
Commit e168f49c authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

dist: testrunner: kill whole process group of spawned process

parent d7a10aa0
Branches
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ def run(testfunc, timeout=5, echo=True): ...@@ -29,7 +29,7 @@ def run(testfunc, timeout=5, echo=True):
return 1 return 1
finally: finally:
print("") print("")
child.kill(signal.SIGKILL) os.killpg(os.getpgid(child.pid), signal.SIGKILL)
child.close() child.close()
return 0 return 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment