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

2010-02-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 the threads created

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

2010-02-15 Thread Nikolaus Rath
Changes by Nikolaus Rath : -- title: Python hangs after last thread has exited -> Interpreter does not terminate if daemonized while running multithreaded ___ Python tracker ___