diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-14 22:45:48 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-14 22:45:48 +0100 |
commit | de9990e17df33f63e5ba85a8beeafbfe4cc99c19 (patch) | |
tree | e90d0d8302eaa2ebd1381e39430391e4f993a037 | |
parent | 4bb6d524dbf571800cf0f2b33da340757ea29f1d (diff) | |
download | trollius-git-de9990e17df33f63e5ba85a8beeafbfe4cc99c19.tar.gz |
Fix BaseSubprocessTransport._kill_wait()
Set the _returncode attribute, so close() doesn't try to terminate the process.
-rw-r--r-- | asyncio/base_subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |