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 <>
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,
Date User Action Args
2019-02-05 22:17:53vtsoziksetrecipients: + vtsozik
2019-02-05 22:17:51vtsoziksetmessageid: <>
2019-02-05 22:17:50vtsoziklinkissue35902 messages
2019-02-05 22:17:50vtsozikcreate