Author Mateusz Klatt
Recipients Mateusz Klatt
Date 2016-10-05.14:53:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
_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>)
Date User Action Args
2016-10-05 14:53:26Mateusz Klattsetrecipients: + Mateusz Klatt
2016-10-05 14:53:26Mateusz Klattsetmessageid: <>
2016-10-05 14:53:26Mateusz Klattlinkissue28364 messages
2016-10-05 14:53:26Mateusz Klattcreate