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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28364>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to