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 pitrou
Recipients aeros, asvetlov, bquinlan, hniksic, pitrou, torsten
Date 2020-04-14.18:19:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586888360.48.0.14622068716.issue36780@roundup.psfhosted.org>
In-reply-to
Content
I think there's a misunderstanding: "wait_at_exit" will make the *executor* forget about the threads, but Python itself still knows about them, and it waits for them to end at interpreter shutdown.

These threads were daemon threads in 3.8, so your patch indeed works there, but we've made them non-daemon in 3.9, for two reasons:
1) daemon threads are fragile and can crash the interpreter at shutdown
2) they are not supported on subinterpreters
History
Date User Action Args
2020-04-14 18:19:20pitrousetrecipients: + pitrou, bquinlan, hniksic, asvetlov, torsten, aeros
2020-04-14 18:19:20pitrousetmessageid: <1586888360.48.0.14622068716.issue36780@roundup.psfhosted.org>
2020-04-14 18:19:20pitroulinkissue36780 messages
2020-04-14 18:19:20pitroucreate