fix-daemon-pthread.patch 705 B

123456789101112131415161718
  1. Taken from OpenWrt, this patch fixes for a broken daemon() function
  2. in applications linked against pthread, as the fork() function provided
  3. by pthread has to be used then. It is said, that this won't fix for
  4. statically compiled binaries.
  5. See here: https://dev.openwrt.org/attachment/ticket/4809/fix-daemon-pthread.patch
  6. and here: https://bugs.busybox.net/show_bug.cgi?id=193
  7. --- a/libc/unistd/daemon.c 2006-07-05 21:52:39.000000000 +0200
  8. +++ b/libc/unistd/daemon.c 2009-03-21 08:45:25.000000000 +0100
  9. @@ -54,7 +54,7 @@
  10. libc_hidden_proto(dup2)
  11. libc_hidden_proto(setsid)
  12. libc_hidden_proto(chdir)
  13. -libc_hidden_proto(fork)
  14. +/* libc_hidden_proto(fork) */
  15. int daemon( int nochdir, int noclose )
  16. {