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 vtsozik
Recipients vtsozik
Date 2019-02-05.22:17:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549405071.04.0.889820238084.issue35902@roundup.psfhosted.org>
In-reply-to
Content
Attached is code sample that forks child process either from main or from background thread. Child starts and joins all of its threads except a sleeping daemon. If parent forks child from main thread program exits immediately after child threads are joined and waitpid is unblocked by SIGCHLD. However if parent process happens to fork from main thread everything works correctly and process exits immediately without waiting for daemon to sleep for 3600 seconds. I'm wondering what is the difference between main and background thread in parent. Only one thread survives forking in child and becomes main thread in the child, so there should be no differences in the behavior.

Thank you in advance for your help,
History
Date User Action Args
2019-02-05 22:17:53vtsoziksetrecipients: + vtsozik
2019-02-05 22:17:51vtsoziksetmessageid: <1549405071.04.0.889820238084.issue35902@roundup.psfhosted.org>
2019-02-05 22:17:50vtsoziklinkissue35902 messages
2019-02-05 22:17:50vtsozikcreate