Issue #15525: Increase timeout when TerminateProcess() fails

This commit is contained in:
Richard Oudkerk 2012-08-01 17:44:18 +01:00
parent c86e8d9c17
commit b303580c7c
1 changed files with 2 additions and 2 deletions

View File

@ -273,8 +273,8 @@ else:
if self.returncode is None: if self.returncode is None:
try: try:
_winapi.TerminateProcess(int(self._handle), TERMINATE) _winapi.TerminateProcess(int(self._handle), TERMINATE)
except WindowsError: except OSError:
if self.wait(timeout=0.1) is None: if self.wait(timeout=1.0) is None:
raise raise
# #