We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c156a9 commit dac7d3bCopy full SHA for dac7d3b
1 file changed
Lib/subprocess.py
@@ -2134,7 +2134,8 @@ def _wait(self, timeout):
2134
with self._waitpid_lock:
2135
if self.returncode is not None:
2136
return self.returncode
2137
- pid, sts = self._try_wait(os.WNOHANG)
+ (pid, sts) = self._try_wait(os.WNOHANG)
2138
+ assert pid == self.pid or pid == 0
2139
if pid == self.pid:
2140
self._handle_exitstatus(sts)
2141
0 commit comments