diff options
author | Andreas Schwab <schwab@suse.de> | 2012-12-23 09:45:07 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2013-01-10 09:59:59 +0100 |
commit | 7e9b080575fd68c788c33623594ba5516fa7ceb0 (patch) | |
tree | 5c244c9473c8dfc7908a73e5e26d6227e4484ac2 /nscd/nscd.c | |
parent | 70d3e06ed0ffabb6ce974cc94b2cff1d67252193 (diff) | |
download | glibc-7e9b080575fd68c788c33623594ba5516fa7ceb0.zip glibc-7e9b080575fd68c788c33623594ba5516fa7ceb0.tar.gz glibc-7e9b080575fd68c788c33623594ba5516fa7ceb0.tar.bz2 |
nscd: don't fork twice
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r-- | nscd/nscd.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c index 26cf3c2..ffbc6f8 100644 --- 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) |