summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-07-26 21:32:51 -0400
committerMike Frysinger <vapier@gentoo.org>2010-07-26 21:32:55 -0400
commit002c7227d4c73edc5b422c2f7f3ef42d9e775efe (patch)
treec2db56844e087fda75c62515ea4de7428f9328bf
parented4dac9d09e6a997c6d33e6b796fe7ddffa3d344 (diff)
daemon: drop cruft incorrectly re-introduced by nptl merge
This likes to break nommu systems. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libc/unistd/daemon.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c
index c3b563179..628df51b8 100644
--- a/libc/unistd/daemon.c
+++ b/libc/unistd/daemon.c
@@ -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("/");