mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merge 3.5 (issue #26741)
This commit is contained in:
commit
2292edf574
1 changed files with 4 additions and 0 deletions
|
@ -211,6 +211,10 @@ class BaseSubprocessTransport(transports.SubprocessTransport):
|
|||
logger.info('%r exited with return code %r',
|
||||
self, returncode)
|
||||
self._returncode = returncode
|
||||
if self._proc.returncode is None:
|
||||
# asyncio uses a child watcher: copy the status into the Popen
|
||||
# object. On Python 3.6, it is required to avoid a ResourceWarning.
|
||||
self._proc.returncode = returncode
|
||||
self._call(self._protocol.process_exited)
|
||||
self._try_finish()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue