Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/libio Whack the atexit(_IO_cleanup), as p...



details:   https://anonhg.NetBSD.org/src/rev/ccd88072466a
branches:  trunk
changeset: 534128:ccd88072466a
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Jul 17 18:01:22 2002 +0000

description:
Whack the atexit(_IO_cleanup), as per ../../libio/cleanup.c 1.2, for the same
reasons:
1) There is already a destructor that does this.  The atexit() is superfluous.
2) If libstdc++ is loaded dynamically by dlopen() and then is removed by
   dlclose(), the pointer is no longer valid and the program would core dump
   at exit() time.  (This caused xmms to core dump at exit when xmms-sid was
   installed, for example.)

diffstat:

 gnu/dist/toolchain/libio/cleanup.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (10 lines):

diff -r 6aabdddb663b -r ccd88072466a gnu/dist/toolchain/libio/cleanup.c
--- a/gnu/dist/toolchain/libio/cleanup.c        Wed Jul 17 16:59:09 2002 +0000
+++ b/gnu/dist/toolchain/libio/cleanup.c        Wed Jul 17 18:01:22 2002 +0000
@@ -1,5 +1,5 @@
 #include "libioP.h"
-#if _G_HAVE_ATEXIT
+#if _G_HAVE_ATEXIT && 0
 #include <stdlib.h>
 
 typedef void (*voidfunc) __P((void));



Home | Main Index | Thread Index | Old Index