Kaydet (Commit) f791d7a2 authored tarafından Peter Astrand's avatar Peter Astrand

On UNIX, when the execution of the child fails, we must waitpid() to

prevent leaving zombies.
üst 454f7671
...@@ -1023,6 +1023,7 @@ class Popen(object): ...@@ -1023,6 +1023,7 @@ class Popen(object):
data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB
os.close(errpipe_read) os.close(errpipe_read)
if data != "": if data != "":
os.waitpid(self.pid, 0)
child_exception = pickle.loads(data) child_exception = pickle.loads(data)
raise child_exception raise child_exception
......
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