From d1f69fed96fdb47aa7394d6e0ece1e16811d55fd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 1 Oct 2002 00:05:23 +0000 Subject: Update. 2002-09-19 David Mosberger * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via a 64-bit gp-relative address to enable binaries with large data sections. 2002-09-30 Ulrich Drepper * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK if it is defined. * posix/Makefile (distribute): Add fork.h. * sysdeps/generic/fork.h: New file. --- stdlib/cxa_finalize.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'stdlib/cxa_finalize.c') diff --git a/stdlib/cxa_finalize.c b/stdlib/cxa_finalize.c index d9ed955ce6..e42f6bd71c 100644 --- a/stdlib/cxa_finalize.c +++ b/stdlib/cxa_finalize.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,6 +20,7 @@ #include #include #include "exit.h" +#include /* If D is non-NULL, call all functions registered with `__cxa_atexit' with the same dso handle. Otherwise, if D is NULL, do nothing. */ @@ -41,4 +42,9 @@ __cxa_finalize (void *d) && compare_and_swap (&f->flavor, ef_cxa, ef_free)) (*f->func.cxa.fn) (f->func.cxa.arg, 0); } + + /* Remove the registered fork handlers. */ +#ifdef UNREGISTER_ATFORK + UNREGISTER_ATFORK (d); +#endif } -- cgit v1.2.3