GH-100133: fix asyncio subprocess losing stderr and stdout output (#100154)

This commit is contained in:
Kumar Aditya 2022-12-21 15:20:26 +05:30 committed by GitHub
parent 4994f2488f
commit a7715ccfba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 3 deletions

View file

@ -215,9 +215,6 @@ class BaseSubprocessTransport(transports.SubprocessTransport):
# object. On Python 3.6, it is required to avoid a ResourceWarning.
self._proc.returncode = returncode
self._call(self._protocol.process_exited)
for p in self._pipes.values():
if p is not None:
p.pipe.close()
self._try_finish()