1 --- fuse-2.7.3.orig/lib/helper.c 2008-11-22 03:25:11.000000000 +0100
2 +++ fuse-2.7.3/lib/helper.c 2008-11-22 04:06:35.000000000 +0100
4 int fuse_daemonize(int foreground)
11 + /* uClibc daemon() has problems with pthread and friends */
12 + /* workaround from http://www.mail-archive.com/uclibc@uclibc.org/msg01073.html */
13 + /* res = daemon(0, 0); */
14 + switch (res = fork()) {
24 - perror("fuse: failed to daemonize program\n");
25 + perror("fuse: failed to fork()\n");
32 + perror("fuse: failed to setsid()\n");
37 + if (fd = open("/dev/null", O_RDWR, 0) != -1) {
38 + dup2(fd, STDIN_FILENO);
39 + dup2(fd, STDOUT_FILENO);
40 + dup2(fd, STDERR_FILENO);