Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Lib/subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,10 +1123,9 @@ def __exit__(self, exc_type, value, traceback):
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:
Expand Down
Loading