about summary refs log tree commit diff
path: root/sysdeps/nptl
diff options
context:
space:
mode:
authorTorvald Riegel <triegel@redhat.com>2013-10-11 18:58:04 +0300
committerTorvald Riegel <triegel@redhat.com>2014-10-20 18:22:30 +0200
commit63668b7084ac26865136e59fdf17781f9f49bd99 (patch)
tree25f39623e3ce1562a1330e2119ae5a3173cd2d7e /sysdeps/nptl
parent42b7f5d48549b85386a9b28a1a90e66fd81ba273 (diff)
downloadglibc-63668b7084ac26865136e59fdf17781f9f49bd99.tar.gz
glibc-63668b7084ac26865136e59fdf17781f9f49bd99.tar.xz
glibc-63668b7084ac26865136e59fdf17781f9f49bd99.zip
pthread_once: Clean up constants.
[BZ #15215] This just gives a name to the integer constants being used.
Diffstat (limited to 'sysdeps/nptl')
-rw-r--r--sysdeps/nptl/fork.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/nptl/fork.c b/sysdeps/nptl/fork.c
index 511533aa60..a7dafa82ab 100644
--- a/sysdeps/nptl/fork.c
+++ b/sysdeps/nptl/fork.c
@@ -141,8 +141,9 @@ __libc_fork (void)
 
       assert (THREAD_GETMEM (self, tid) != ppid);
 
+      /* See __pthread_once.  */
       if (__fork_generation_pointer != NULL)
-	*__fork_generation_pointer += 4;
+	*__fork_generation_pointer += __PTHREAD_ONCE_FORK_GEN_INCR;
 
       /* Adjust the PID field for the new process.  */
       THREAD_SETMEM (self, pid, THREAD_GETMEM (self, tid));