Browse Source

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 14 years ago
parent
commit
002c7227d4
1 changed files with 0 additions and 7 deletions
  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("/");