Tim Peters <t...@python.org> added the comment:
Noting that adding a `.join()` to the failing code on the StackOverflow report appeared to fix that problem too. In hindsight, I guess I'm only mildly surprised that letting the main process run full speed into interpreter shutdown code while worker processes are still running can have bad effects. But I am _somewhat_ surprised. For threads, early in shutdown we automatically run a loop to .join() them. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41660> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com