[issue37410] [Windows] subprocess: close the handle when the process completes
STINNER Victor
report at bugs.python.org
Wed Jun 26 09:38:43 EDT 2019
STINNER Victor <vstinner at redhat.com> added the comment:
We may backport the change to Python 2.7 as well, but in this case terminate() must be changed to test returncode:
def terminate(self):
"""Terminates the process."""
# Don't terminate a process that we know has already died.
if self.returncode is not None:
return
...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37410>
_______________________________________
More information about the Python-bugs-list
mailing list