summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-29 01:15:35 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-29 01:15:35 (GMT)
commitc84d167733efd33b54818b1f334c579cf7c8e548 (patch)
tree6de92fb0c56faffece068c1488fc401a570d8190 /Lib
parentbd4976bbd3c8cdfba974c1a66970a1f956c08f53 (diff)
parent7b5a900e88a046b01eebafdc98ee23d531c101d3 (diff)
downloadcpython-c84d167733efd33b54818b1f334c579cf7c8e548.zip
cpython-c84d167733efd33b54818b1f334c579cf7c8e548.tar.gz
cpython-c84d167733efd33b54818b1f334c579cf7c8e548.tar.bz2
Merge 3.4 (asyncio)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/base_subprocess.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asyncio/base_subprocess.py b/Lib/asyncio/base_subprocess.py
index f5e7dfe..81c6f1a 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: