summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-14 22:45:48 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-14 22:45:48 +0100
commit7d176bab4355e6bc3a92b223505e0bed04cfaa49 (patch)
treee90d0d8302eaa2ebd1381e39430391e4f993a037
parent3d5d99c4a3bbcedb1e338cdc3daa33aa0d09a122 (diff)
downloadtrollius-7d176bab4355e6bc3a92b223505e0bed04cfaa49.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.py2
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):