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/cvs/src Pull up revision 1.2 (requested by chr...



details:   https://anonhg.NetBSD.org/src/rev/56b107f1031d
branches:  netbsd-1-6
changeset: 530853:56b107f1031d
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Oct 10 18:04:38 2003 +0000

description:
Pull up revision 1.2 (requested by christos in ticket #1514):
Avoid re-entry in the cleanup signal handlers.

diffstat:

 gnu/dist/cvs/src/patch.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 2ad82571011f -r 56b107f1031d gnu/dist/cvs/src/patch.c
--- a/gnu/dist/cvs/src/patch.c  Fri Oct 10 18:00:59 2003 +0000
+++ b/gnu/dist/cvs/src/patch.c  Fri Oct 10 18:04:38 2003 +0000
@@ -771,6 +771,11 @@
 static RETSIGTYPE
 patch_cleanup ()
 {
+    static int reenter = 0;
+
+    if (reenter++)
+       _exit(1);
+
     /* Note that the checks for existence_error are because we are
        called from a signal handler, without SIG_begincrsect, so
        we don't know whether the files got created.  */



Home | Main Index | Thread Index | Old Index