dist: testrunner: kill whole process group of spawned process

This commit is contained in:
Kaspar Schleiser 2016-03-05 20:47:51 +01:00
parent d7a10aa030
commit e168f49c86

View File

@ -29,7 +29,7 @@ def run(testfunc, timeout=5, echo=True):
return 1
finally:
print("")
child.kill(signal.SIGKILL)
os.killpg(os.getpgid(child.pid), signal.SIGKILL)
child.close()
return 0