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 the threads created by the 
threading module (and clears some other locks as well, preventing deadlocks).
Or google for "daemonize python".

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7931>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to