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
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