mirror of https://github.com/python/cpython
Issue #15525: Increase timeout when TerminateProcess() fails
This commit is contained in:
parent
c86e8d9c17
commit
b303580c7c
|
@ -273,8 +273,8 @@ else:
|
|||
if self.returncode is None:
|
||||
try:
|
||||
_winapi.TerminateProcess(int(self._handle), TERMINATE)
|
||||
except WindowsError:
|
||||
if self.wait(timeout=0.1) is None:
|
||||
except OSError:
|
||||
if self.wait(timeout=1.0) is None:
|
||||
raise
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue