[issue7931] Interpreter does not terminate if daemonized while running multithreaded

2010-02-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: libc.daemon() calls forks(), which duplicates only the main thread. The other thread does not exists in the forked process, and the interpreter blocks while trying to wait for it... Please use os.fork() instead, it has code to forget

[issue7931] Interpreter does not terminate if daemonized while running multithreaded

2010-02-15 Thread Nikolaus Rath
Changes by Nikolaus Rath nikol...@rath.org: -- title: Python hangs after last thread has exited - Interpreter does not terminate if daemonized while running multithreaded ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7931