mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
fork.h: replace with register-atfork.h
UNREGISTER_ATFORK is now defined for all ports in register-atfork.h, so most previous includes of fork.h actually only need register-atfork.h now, and cxa_finalize.c does not need an ifdef UNREGISTER_ATFORK any more. The nptl-specific fork generation counters can then go to pthreadP.h, and fork.h be removed. Checked on x86_64-linux-gnu and i686-gnu. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include "exit.h"
|
||||
#include <fork.h>
|
||||
#include <register-atfork.h>
|
||||
#include <sysdep.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@ -102,9 +102,7 @@ __cxa_finalize (void *d)
|
||||
|
||||
/* Remove the registered fork handlers. We do not have to
|
||||
unregister anything if the program is going to terminate anyway. */
|
||||
#ifdef UNREGISTER_ATFORK
|
||||
if (d != NULL)
|
||||
UNREGISTER_ATFORK (d);
|
||||
#endif
|
||||
__libc_lock_unlock (__exit_funcs_lock);
|
||||
}
|
||||
|
Reference in New Issue
Block a user