From 64786a7090d104a2e4e2e225b1eff08951fe008a Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 24 Mar 2021 21:27:34 +0100 Subject: 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 --- stdlib/cxa_finalize.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'stdlib') diff --git a/stdlib/cxa_finalize.c b/stdlib/cxa_finalize.c index 7d7b09b3cc..75ea4022fb 100644 --- a/stdlib/cxa_finalize.c +++ b/stdlib/cxa_finalize.c @@ -18,7 +18,7 @@ #include #include #include "exit.h" -#include +#include #include #include @@ -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); } -- cgit 1.4.1