[New-bugs-announce] [issue28364] Windows - Popen (subprocess.py) does not call _handle.Close() at all
Mateusz Klatt
report at bugs.python.org
Wed Oct 5 10:53:26 EDT 2016
New submission from Mateusz Klatt:
_subprocess.TerminateProcess(self._handle, 1)
is not enough, on windows need to call self._handle.Close() after that
self._handle.Close() should be also called in __del__ - for the process es that ware not killed bu user, but terminated by themselves.
To reproduce... run popen in loop and observe file descriptors usage (SysInternals... handle -s -p <pid>)
----------
components: Library (Lib)
messages: 278129
nosy: Mateusz Klatt
priority: normal
severity: normal
status: open
title: Windows - Popen (subprocess.py) does not call _handle.Close() at all
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28364>
_______________________________________
More information about the New-bugs-announce
mailing list