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 giampaolo.rodola
Recipients eryksun, giampaolo.rodola, vstinner
Date 2019-02-22.00:05:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550793955.01.0.437382158175.issue36067@roundup.psfhosted.org>
In-reply-to
Content
Interesting. Because both errors/conditions are mapped to ERROR_INVALID_HANDLE we need the creation time. I can work on a patch for that. Potentially I can also include OSX, Linux and BSD* implementations for methods involving os.kill(pid). That would be a broader task though. That also raises the question if there are other methods other than kill()/terminate()/send_signal() that we want to make "safe" from the reused PID scenario. 

> Also, unrelated but something I noticed. Using _active list in Windows shouldn't be necessary. Unlike Unix, a process in Windows doesn't have to be waited on by its parent to avoid a zombie. Keeping the handle open will actually create a zombie until the next _cleanup() call, which may be never if Popen() isn't called again.

Good catch. Looks like it deserves a ticket.
History
Date User Action Args
2019-02-22 00:05:55giampaolo.rodolasetrecipients: + giampaolo.rodola, vstinner, eryksun
2019-02-22 00:05:55giampaolo.rodolasetmessageid: <1550793955.01.0.437382158175.issue36067@roundup.psfhosted.org>
2019-02-22 00:05:54giampaolo.rodolalinkissue36067 messages
2019-02-22 00:05:54giampaolo.rodolacreate