Commit 501e6ed3 authored by Jason Madden's avatar Jason Madden

We need to set the result when we detect a process is dead in the act of...

We need to set the result when we detect a process is dead in the act of killing it, so that in the future we don't try to wait on it again.
parent 4023d962
......@@ -108,7 +108,6 @@ __extra__ = [
'CreateProcess',
'INFINITE',
'TerminateProcess',
'GetExitCodeProcess',
'STILL_ACTIVE',
# These were added for 3.5, but we make them available everywhere.
......@@ -1011,6 +1010,7 @@ class Popen(object):
if rc == STILL_ACTIVE:
raise
self.returncode = rc
self.result.set(self.returncode)
kill = terminate
......
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