OSDN Git Service

daemon: drop cruft incorrectly re-introduced by nptl merge
authorMike Frysinger <vapier@gentoo.org>
Tue, 27 Jul 2010 01:32:51 +0000 (21:32 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 27 Jul 2010 01:32:55 +0000 (21:32 -0400)
This likes to break nommu systems.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/unistd/daemon.c

index c3b5631..628df51 100644 (file)
@@ -111,13 +111,6 @@ int daemon(int nochdir, int noclose)
        if (setsid() == -1)
                return -1;
 
-#ifndef __UCLIBC_HAS_THREADS_NATIVE__
-       /* Make certain we are not a session leader, or else we
-        * might reacquire a controlling terminal */
-       if (fork())
-               _exit(0);
-#endif
-
        if (!nochdir)
                chdir("/");