From 7d176bab4355e6bc3a92b223505e0bed04cfaa49 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 14 Jan 2015 22:45:48 +0100 Subject: Fix BaseSubprocessTransport._kill_wait() Set the _returncode attribute, so close() doesn't try to terminate the process. --- asyncio/base_subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncio/base_subprocess.py b/asyncio/base_subprocess.py index 0787ad7..d607e8d 100644 --- a/asyncio/base_subprocess.py +++ b/asyncio/base_subprocess.py @@ -119,7 +119,7 @@ class BaseSubprocessTransport(transports.SubprocessTransport): proc.kill() except ProcessLookupError: pass - proc.wait() + self._returncode = proc.wait() @coroutine def _post_init(self): -- cgit v1.2.1