Skip to content

Commit 61c6b99

Browse files
committed
Revert prev change
1 parent 6ee771b commit 61c6b99

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

Lib/subprocess.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,13 +2157,7 @@ def _wait(self, timeout):
21572157
if timeout < 0:
21582158
raise TimeoutExpired(self.args, timeout)
21592159
if self._wait_pidfd(timeout) or self._wait_kqueue(timeout):
2160-
# At this point os.waitpid(pid, 0) should return
2161-
# immediately, but in rare races another thread or
2162-
# signal handler may have already reaped the PID.
2163-
# Using _busy_wait(0) (WNOHANG) ensures we attempt
2164-
# a non-blocking reap safely without blocking
2165-
# indefinitely.
2166-
self._busy_wait(0)
2160+
self._blocking_wait()
21672161
else:
21682162
self._busy_wait(timeout)
21692163
else:

0 commit comments

Comments
 (0)