From 002c7227d4c73edc5b422c2f7f3ef42d9e775efe Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 26 Jul 2010 21:32:51 -0400 Subject: daemon: drop cruft incorrectly re-introduced by nptl merge This likes to break nommu systems. Signed-off-by: Mike Frysinger --- libc/unistd/daemon.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libc/unistd') 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("/"); -- cgit v1.2.3