mirror of https://github.com/python/cpython
asyncio: BaseSubprocessTransport._kill_wait() now also call close()
close() closes pipes, which is not None yet by _kill_wait().
This commit is contained in:
parent
702dada2c5
commit
7b5a900e88
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue