mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #15525: Increase timeout when TerminateProcess() fails
This commit is contained in:
parent
c86e8d9c17
commit
b303580c7c
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue