From 63668b7084ac26865136e59fdf17781f9f49bd99 Mon Sep 17 00:00:00 2001 From: Torvald Riegel Date: Fri, 11 Oct 2013 18:58:04 +0300 Subject: pthread_once: Clean up constants. [BZ #15215] This just gives a name to the integer constants being used. --- sysdeps/nptl/fork.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/nptl') diff --git a/sysdeps/nptl/fork.c b/sysdeps/nptl/fork.c index 511533a..a7dafa8 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)); -- cgit v1.1