Explorar o código

daemon: drop cruft incorrectly re-introduced by nptl merge

This likes to break nommu systems.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger %!s(int64=14) %!d(string=hai) anos
pai
achega
002c7227d4
Modificáronse 1 ficheiros con 0 adicións e 7 borrados
  1. 0 7
      libc/unistd/daemon.c

+ 0 - 7
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("/");