Commit 54d3f77e by Ned Batchelder

Simplify the subprocess code that kills the sandbox.

parent e7ef8dbe
......@@ -225,8 +225,4 @@ class ProcessKillerThread(threading.Thread):
"Killing process %r (group %r), ran too long: %.1fs",
self.subproc.pid, pgid, time.time()-start
)
killargs = ["sudo", "pkill", "-9", "-g", str(pgid)]
kill = subprocess.Popen(
killargs, stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
out, err = kill.communicate()
subprocess.call(["sudo", "pkill", "-9", "-g", str(pgid)])
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