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 | 7d176bab4355e6bc3a92b223505e0bed04cfaa49 (patch) | |
tree | e90d0d8302eaa2ebd1381e39430391e4f993a037 /asyncio | |
parent | 3d5d99c4a3bbcedb1e338cdc3daa33aa0d09a122 (diff) | |
download | trollius-7d176bab4355e6bc3a92b223505e0bed04cfaa49.tar.gz |
Fix BaseSubprocessTransport._kill_wait()
Set the _returncode attribute, so close() doesn't try to terminate the process.
Diffstat (limited to 'asyncio')
-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): |