summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2010-04-11 21:41:18 +0200
committerPhil Sutter <phil@nwl.cc>2010-06-20 16:17:30 +0200
commit841d7e848cb41ceeadf1e050ddcd9632c729601e (patch)
tree93c0c1e7d39281490ce5f02a93352b6e411323fc /toolchain
parent4897a9b15a1cbd741ace1ce3a844e93ce10cd1a1 (diff)
uclibc: fix for broken daemon() in pthreaded programs
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/uClibc/patches/fix-daemon-pthread.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches/fix-daemon-pthread.patch b/toolchain/uClibc/patches/fix-daemon-pthread.patch
new file mode 100644
index 000000000..a137320c2
--- /dev/null
+++ b/toolchain/uClibc/patches/fix-daemon-pthread.patch
@@ -0,0 +1,18 @@
+ Taken from OpenWrt, this patch fixes for a broken daemon() function
+ in applications linked against pthread, as the fork() function provided
+ by pthread has to be used then. It is said, that this won't fix for
+ statically compiled binaries.
+
+ See here: https://dev.openwrt.org/attachment/ticket/4809/fix-daemon-pthread.patch
+ and here: https://bugs.busybox.net/show_bug.cgi?id=193
+--- a/libc/unistd/daemon.c 2006-07-05 21:52:39.000000000 +0200
++++ b/libc/unistd/daemon.c 2009-03-21 08:45:25.000000000 +0100
+@@ -54,7 +54,7 @@
+ libc_hidden_proto(dup2)
+ libc_hidden_proto(setsid)
+ libc_hidden_proto(chdir)
+-libc_hidden_proto(fork)
++/* libc_hidden_proto(fork) */
+
+ int daemon( int nochdir, int noclose )
+ {