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 eryksun
Recipients eryksun, jnoller, mallyvai, pakal, tim.peters
Date 2017-04-02.00:19:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491092378.34.0.455833365483.issue5906@psf.upfronthosting.co.za>
In-reply-to
Content
> I've personally found this `multiprocessing` restriction (daemonic 
> processes can't have children) to be nothing but a pain in the ass 

To make that reliable on Windows you could create a silent-breakaway, kill-on-close Job object in each process for its daemon children. Closing the job handle would cascade terminate all descendant daemon processes in that branch of the process tree, i.e. when a process is terminated it closes the Job handle, which terminates all of its daemon children, which closes their Job handles, which terminates all of their daemon children, and so on. Non-daemons would still be orphaned when the parent is terminated.
History
Date User Action Args
2017-04-02 00:19:38eryksunsetrecipients: + eryksun, tim.peters, jnoller, pakal, mallyvai
2017-04-02 00:19:38eryksunsetmessageid: <1491092378.34.0.455833365483.issue5906@psf.upfronthosting.co.za>
2017-04-02 00:19:38eryksunlinkissue5906 messages
2017-04-02 00:19:37eryksuncreate