diff options
author | Andreas Schwab <schwab@suse.de> | 2012-12-23 09:45:07 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2013-04-15 09:49:55 +0200 |
commit | 0582f6b3d6fab2128ee43a06250571922ee7c1e3 (patch) | |
tree | 6259a98f93bfb5287cc816327167b10816ce863a | |
parent | 5cb26d0aed9c7414f0d391a0ca766786625de8b5 (diff) | |
download | glibc-0582f6b3d6fab2128ee43a06250571922ee7c1e3.tar.gz glibc-0582f6b3d6fab2128ee43a06250571922ee7c1e3.tar.xz glibc-0582f6b3d6fab2128ee43a06250571922ee7c1e3.zip |
nscd: don't fork twice
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | nscd/nscd.c | 9 |
2 files changed, 4 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog index ac1d2637a0..6a02e77d1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-04-15 Andreas Schwab <schwab@suse.de> + + * nscd/nscd.c (main): Don't fork again after closing files. + 2013-04-15 Siddhesh Poyarekar <siddhesh@redhat.com> * libio/tst-fwrite-error.c (do_test): Fix BUF array definition. diff --git a/nscd/nscd.c b/nscd/nscd.c index 26cf3c2692..ffbc6f8bc9 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) |