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
Родитель 12ee966a97
Коммит 56769d6693
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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