cpython (3.4): asyncio: BaseSubprocessTransport._kill_wait() now also call close()
https://hg.python.org/cpython/rev/44f90017eee3 changeset: 94364:44f90017eee3 branch: 3.4 parent: 94362:8fb1abedd3d5 user: Victor Stinner <victor.stinner@gmail.com> date: Thu Jan 29 02:14:30 2015 +0100 summary: asyncio: BaseSubprocessTransport._kill_wait() now also call close() close() closes pipes, which is not None yet by _kill_wait(). files: Lib/asyncio/base_subprocess.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py --- a/Lib/asyncio/base_subprocess.py +++ b/Lib/asyncio/base_subprocess.py @@ -117,12 +117,15 @@ proc.stderr.close() if proc.stdin: proc.stdin.close() + try: proc.kill() except ProcessLookupError: pass self._returncode = proc.wait() + self.close() + @coroutine def _post_init(self): try: -- Repository URL: https://hg.python.org/cpython
participants (1)
-
victor.stinner