diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-10-01 00:05:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-10-01 00:05:23 +0000 |
commit | d1f69fed96fdb47aa7394d6e0ece1e16811d55fd (patch) | |
tree | 31bdbc866ae4cc7d0ef50a65b9a5d676660473e5 /stdlib/cxa_finalize.c | |
parent | e3b0b8baa175848d3ff72e0494581b6eddcde29a (diff) | |
download | glibc-d1f69fed96fdb47aa7394d6e0ece1e16811d55fd.tar.gz glibc-d1f69fed96fdb47aa7394d6e0ece1e16811d55fd.tar.xz glibc-d1f69fed96fdb47aa7394d6e0ece1e16811d55fd.zip |
Update.
2002-09-19 David Mosberger <davidm@hpl.hp.com> * 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 <drepper@redhat.com> * 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.
Diffstat (limited to 'stdlib/cxa_finalize.c')
-rw-r--r-- | stdlib/cxa_finalize.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <stdlib.h> #include <atomicity.h> #include "exit.h" +#include <fork.h> /* 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 } |