[Bug 193] main thread dies after daemon() && pthread_create()

bugzilla at busybox.net bugzilla at busybox.net
Wed Jul 22 06:20:09 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=193





--- Comment #18 from Mike Frysinger <vapier at gentoo.org>  2009-07-22 06:20:09 UTC ---
this appears to be caused by the hidden alias to fork().  libpthread has its
own fork() symbol but because daemon() calls the hidden one, that isnt used.

this simple patch fixes things for me:

--- a/include/unistd.h
+++ b/include/unistd.h
@@ -761 +761 @@
-libc_hidden_proto(fork)
+//libc_hidden_proto(fork)
--- a/libc/sysdeps/linux/common/fork.c
+++ b/libc/sysdeps/linux/common/fork.c
@@ -21 +21 @@
-libc_hidden_weak(fork)
+//libc_hidden_weak(fork)

but this doesnt address static linking ... the same bug will be observed


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list