OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed4dac9
)
daemon: drop cruft incorrectly re-introduced by nptl merge
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 27 Jul 2010 01:32:51 +0000
(21:32 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 27 Jul 2010 01:32:55 +0000
(21:32 -0400)
This likes to break nommu systems.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/unistd/daemon.c
patch
|
blob
|
history
diff --git
a/libc/unistd/daemon.c
b/libc/unistd/daemon.c
index
c3b5631
..
628df51
100644
(file)
--- 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("/");