Source-Changes-HG archive

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

[src/netbsd-1-6]: src/gnu/dist/toolchain/libio Pull up revision 1.2 (requeste...



details:   https://anonhg.NetBSD.org/src/rev/45c92208b72d
branches:  netbsd-1-6
changeset: 528452:45c92208b72d
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jul 18 08:36:39 2002 +0000

description:
Pull up revision 1.2 (requested by mycroft in ticket #515):
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 62cb6b7f124e -r 45c92208b72d gnu/dist/toolchain/libio/cleanup.c
--- a/gnu/dist/toolchain/libio/cleanup.c        Thu Jul 18 04:47:47 2002 +0000
+++ b/gnu/dist/toolchain/libio/cleanup.c        Thu Jul 18 08:36:39 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