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:
|
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
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue