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__ = [ ...@@ -108,7 +108,6 @@ __extra__ = [
'CreateProcess', 'CreateProcess',
'INFINITE', 'INFINITE',
'TerminateProcess', 'TerminateProcess',
'GetExitCodeProcess',
'STILL_ACTIVE', 'STILL_ACTIVE',
# These were added for 3.5, but we make them available everywhere. # These were added for 3.5, but we make them available everywhere.
...@@ -1011,6 +1010,7 @@ class Popen(object): ...@@ -1011,6 +1010,7 @@ class Popen(object):
if rc == STILL_ACTIVE: if rc == STILL_ACTIVE:
raise raise
self.returncode = rc self.returncode = rc
self.result.set(self.returncode)
kill = terminate 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