mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-130080: return in finally in subprocess.py (#130081)
This commit is contained in:
parent
73d03005b0
commit
56495f81fc
1 changed files with 3 additions and 4 deletions
|
@ -1123,10 +1123,9 @@ class Popen:
|
|||
except TimeoutExpired:
|
||||
pass
|
||||
self._sigint_wait_secs = 0 # Note that this has been done.
|
||||
return # resume the KeyboardInterrupt
|
||||
|
||||
# Wait for the process to terminate, to avoid zombies.
|
||||
self.wait()
|
||||
else:
|
||||
# Wait for the process to terminate, to avoid zombies.
|
||||
self.wait()
|
||||
|
||||
def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):
|
||||
if not self._child_created:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue