New submission from Piet van Oostrum: When a process started as a multiprocessing Process spawns a thread, it doesn't wait until the thread terminates. It terminates the thread early when the main thread of the process terminates, as if the thread would be daemonic (it isn't).
It may sound a bit weird to start a Thread within multiprocessing, but it isn't prohibited. Neither is this behavior documented. In the attached program the thread doesn't complete. However when the mythread.join() statement is uncommented it does run to completion. ---------- components: Library (Lib) files: processthread.py messages: 197210 nosy: pietvo priority: normal severity: normal status: open title: Threads within multiprocessing Process terminate early type: behavior versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file31658/processthread.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18966> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com