This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.17-531-g0582f6b


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  0582f6b3d6fab2128ee43a06250571922ee7c1e3 (commit)
      from  5cb26d0aed9c7414f0d391a0ca766786625de8b5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=0582f6b3d6fab2128ee43a06250571922ee7c1e3

commit 0582f6b3d6fab2128ee43a06250571922ee7c1e3
Author: Andreas Schwab <schwab@suse.de>
Date:   Sun Dec 23 09:45:07 2012 +0100

    nscd: don't fork twice

diff --git a/ChangeLog b/ChangeLog
index ac1d263..6a02e77 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 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)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog   |    4 ++++
 nscd/nscd.c |    9 ---------
 2 files changed, 4 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]