summaryrefslogtreecommitdiff
path: root/libc/unistd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/daemon.c')
-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("/");