This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mateusz Klatt
Recipients Mateusz Klatt
Date 2016-10-05.14:53:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475679206.56.0.813487481998.issue28364@psf.upfronthosting.co.za>
In-reply-to
Content
_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>)
History
Date User Action Args
2016-10-05 14:53:26Mateusz Klattsetrecipients: + Mateusz Klatt
2016-10-05 14:53:26Mateusz Klattsetmessageid: <1475679206.56.0.813487481998.issue28364@psf.upfronthosting.co.za>
2016-10-05 14:53:26Mateusz Klattlinkissue28364 messages
2016-10-05 14:53:26Mateusz Klattcreate