diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-07-26 21:32:51 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-07-26 21:32:55 -0400 |
commit | 002c7227d4c73edc5b422c2f7f3ef42d9e775efe (patch) | |
tree | c2db56844e087fda75c62515ea4de7428f9328bf /libc/unistd/daemon.c | |
parent | ed4dac9d09e6a997c6d33e6b796fe7ddffa3d344 (diff) |
daemon: drop cruft incorrectly re-introduced by nptl merge
This likes to break nommu systems.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/unistd/daemon.c')
-rw-r--r-- | libc/unistd/daemon.c | 7 |
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("/"); |