mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
NPTL: Move fork state variables to initializer files.
This commit is contained in:
@ -1,5 +1,10 @@
|
|||||||
2014-12-17 Roland McGrath <roland@hack.frob.com>
|
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):
|
* sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
|
||||||
Use pthread_sigmask rather than INTERNAL_SYSCALL.
|
Use pthread_sigmask rather than INTERNAL_SYSCALL.
|
||||||
Use assert_perror to check its return value.
|
Use assert_perror to check its return value.
|
||||||
|
@ -28,6 +28,9 @@
|
|||||||
#include <ldsodefs.h>
|
#include <ldsodefs.h>
|
||||||
|
|
||||||
|
|
||||||
|
unsigned long int *__fork_generation_pointer;
|
||||||
|
|
||||||
|
|
||||||
#ifdef TLS_MULTIPLE_THREADS_IN_TCB
|
#ifdef TLS_MULTIPLE_THREADS_IN_TCB
|
||||||
void
|
void
|
||||||
#else
|
#else
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
#include <atomic.h>
|
#include <atomic.h>
|
||||||
|
|
||||||
|
|
||||||
|
struct fork_handler *__fork_handlers;
|
||||||
|
|
||||||
/* Lock to protect allocation and deallocation of fork handlers. */
|
/* Lock to protect allocation and deallocation of fork handlers. */
|
||||||
int __fork_lock = LLL_LOCK_INITIALIZER;
|
int __fork_lock = LLL_LOCK_INITIALIZER;
|
||||||
|
|
||||||
|
@ -32,14 +32,6 @@
|
|||||||
#include <arch-fork.h>
|
#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
|
static void
|
||||||
fresetlockfiles (void)
|
fresetlockfiles (void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user