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.20-383-gdd69045


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  dd6904541f6586616a6783388f18be0447e4dcb2 (commit)
      from  74eb826cff5e4277d2d866a92058f27a837f8ff7 (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=dd6904541f6586616a6783388f18be0447e4dcb2

commit dd6904541f6586616a6783388f18be0447e4dcb2
Author: Roland McGrath <roland@hack.frob.com>
Date:   Wed Dec 17 14:33:28 2014 -0800

    NPTL: Move fork state variables to initializer files.

diff --git a/ChangeLog b/ChangeLog
index 216b2c9..799b21a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-12-17  Roland McGrath  <roland@hack.frob.com>
 
+	* sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
+	* nptl/libc_pthread_init.c: ... here.
+	* sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
+	* nptl/register-atfork.c: ... here.
+
 	* sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
 	Use pthread_sigmask rather than INTERNAL_SYSCALL.
 	Use assert_perror to check its return value.
diff --git a/nptl/libc_pthread_init.c b/nptl/libc_pthread_init.c
index 4d8d710..2bedf86 100644
--- a/nptl/libc_pthread_init.c
+++ b/nptl/libc_pthread_init.c
@@ -28,6 +28,9 @@
 #include <ldsodefs.h>
 
 
+unsigned long int *__fork_generation_pointer;
+
+
 #ifdef TLS_MULTIPLE_THREADS_IN_TCB
 void
 #else
diff --git a/nptl/register-atfork.c b/nptl/register-atfork.c
index 2cc4954..d79f643 100644
--- a/nptl/register-atfork.c
+++ b/nptl/register-atfork.c
@@ -23,6 +23,8 @@
 #include <atomic.h>
 
 
+struct fork_handler *__fork_handlers;
+
 /* Lock to protect allocation and deallocation of fork handlers.  */
 int __fork_lock = LLL_LOCK_INITIALIZER;
 
diff --git a/sysdeps/nptl/fork.c b/sysdeps/nptl/fork.c
index 7ef693d..dfd1169 100644
--- a/sysdeps/nptl/fork.c
+++ b/sysdeps/nptl/fork.c
@@ -32,14 +32,6 @@
 #include <arch-fork.h>
 
 
-unsigned long int *__fork_generation_pointer;
-
-
-
-/* The single linked list of all currently registered fork handlers.  */
-struct fork_handler *__fork_handlers;
-
-
 static void
 fresetlockfiles (void)
 {

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

Summary of changes:
 ChangeLog                |    5 +++++
 nptl/libc_pthread_init.c |    3 +++
 nptl/register-atfork.c   |    2 ++
 sysdeps/nptl/fork.c      |    8 --------
 4 files changed, 10 insertions(+), 8 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]