From: Victor Stinner Date: Thu, 29 Jan 2015 01:14:30 +0000 (+0100) Subject: asyncio: BaseSubprocessTransport._kill_wait() now also call close() X-Git-Tag: v3.4.3rc1~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b5a900e88a046b01eebafdc98ee23d531c101d3;p=python asyncio: BaseSubprocessTransport._kill_wait() now also call close() close() closes pipes, which is not None yet by _kill_wait(). --- diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py index f5e7dfec13..81c6f1a71d 100644 --- a/Lib/asyncio/base_subprocess.py +++ b/Lib/asyncio/base_subprocess.py @@ -117,12 +117,15 @@ class BaseSubprocessTransport(transports.SubprocessTransport): 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: