[git commit master 1/1] daemon: drop cruft incorrectly re-introduced by nptl merge
Mike Frysinger
vapier at gentoo.org
Tue Jul 27 01:39:07 UTC 2010
commit: http://git.uclibc.org/uClibc/commit/?id=002c7227d4c73edc5b422c2f7f3ef42d9e775efe
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
This likes to break nommu systems.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
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 c3b5631..628df51 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("/");
--
1.7.1
More information about the uClibc-cvs
mailing list