Compiling asterisk against uclibc-0.9.29

Ming-Ching Tiew mingching.tiew at redtone.com
Sun Oct 26 12:29:58 UTC 2008


Rob Landley wrote:
> Could you post your simple test program?  I tried to come up with one 
> (attached), built it with:
>   i686-gcc thread-hello2.c -lpthread --static
>
> And it worked exactly the same way on gcc and on uClibc (with svn 23784).
>
> My uClibc .config is also attached.
>
>
>   

My program attached.

I did not do fork() in my code. I suspect there is a difference
between if you do fork() in your code vs when you do
fork() in uclibc library.

In the function main(), it calls the uclibc library daemon(),
then the thread will hang. But if I call my_daemon(), which
is the exact replica of uclibc daemon() in source, then it
will not hang.

Regards.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: t1.c
Type: text/x-csrc
Size: 1993 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20081026/4d8af92b/attachment-0002.c 


More information about the uClibc mailing list