projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70d3e06
)
nscd: don't fork twice
author
Andreas Schwab
<schwab@suse.de>
Sun, 23 Dec 2012 08:45:07 +0000
(09:45 +0100)
committer
Andreas Schwab
<schwab@suse.de>
Thu, 10 Jan 2013 08:59:59 +0000
(09:59 +0100)
nscd/nscd.c
patch
|
blob
|
history
diff --git
a/nscd/nscd.c
b/nscd/nscd.c
index
26cf3c2
..
ffbc6f8
100644
(file)
--- a/
nscd/nscd.c
+++ b/
nscd/nscd.c
@@
-252,15
+252,6
@@
main (int argc, char **argv)
for (i = min_close_fd; i < getdtablesize (); i++)
close (i);
- if (run_mode == RUN_DAEMONIZE)
- {
- pid = fork ();
- if (pid == -1)
- error (EXIT_FAILURE, errno, _("cannot fork"));
- if (pid != 0)
- exit (0);
- }
-
setsid ();
if (chdir ("/") != 0)