On Monday 20 October 2008 22:25:37 Ming-Ching Tiew wrote: > 5. In the bugged case, the daemonized process did not > actually die, it lingers around ( it's one of the 3 processes ). > Further down in the source, it calls ast_makesocket(). > But in ast_makesocket() it was stuck in pthread_create() > and never return ( this accounts for the additional 2 process > created ). > > Strange thing is that if I don't call daemon() or if I compile > daemon() into asterisk source, then ast_makesocket() > ( and hence pthread_create() ) will not block.
Ok, so this is a case of calling pthread_create() after calling daemon(), except the simple test didn't cause a problem? Rob _______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
