uClibc-0.9.29 daemon and pthread problem

Mike Frysinger vapier at gentoo.org
Wed Jul 22 17:07:34 UTC 2009


On Friday 01 June 2007 10:53:01 Kasia Binam wrote:
> After daemon()-izing a process, when I use pthread_create to start a new
> thread, the main thread
> never wakes up.  For example:
> ...
> So the pthread manager is trying to wake up the original main thread
> before it was daemonized.  If I replace daemon() with a duplicate of the
> daemon() code in my example program, there is no problem.  It seems like
> there's something funny with the alias or build magic so that I'm using
> two different forks?

problem due to hidden fork symbol usage in daemon() rather than using the 
fork() provided by libpthread
https://bugs.busybox.net/show_bug.cgi?id=193
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090722/11acdf30/attachment.pgp>


More information about the uClibc mailing list