asyncio: BaseSubprocessTransport._kill_wait() now also call close()

close() closes pipes, which is not None yet by _kill_wait().
This commit is contained in:
Victor Stinner 2015-01-29 02:14:30 +01:00
parent 702dada2c5
commit 7b5a900e88
1 changed files with 3 additions and 0 deletions

View File

@ -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: