Bug 1060527 - [mozprocess] signal finished if IO completion port unexpectedly closed on windows, r=jgriffin

--HG--
extra : rebase_source : 773b4bdcbaa088caa958b6d084989439f00a0370
This commit is contained in:
Andrew Halberstadt 2014-11-14 08:47:32 -05:00
parent 5ac2461cb0
commit 574ae0e442

View File

@ -363,6 +363,7 @@ falling back to not using job objects for managing child processes"""
if errcode == winprocess.ERROR_ABANDONED_WAIT_0: if errcode == winprocess.ERROR_ABANDONED_WAIT_0:
# Then something has killed the port, break the loop # Then something has killed the port, break the loop
print >> sys.stderr, "IO Completion Port unexpectedly closed" print >> sys.stderr, "IO Completion Port unexpectedly closed"
self._process_events.put({self.pid: 'FINISHED'})
break break
elif errcode == winprocess.WAIT_TIMEOUT: elif errcode == winprocess.WAIT_TIMEOUT:
# Timeouts are expected, just keep on polling # Timeouts are expected, just keep on polling