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.8 (requested by chr...



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

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

diffstat:

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

diffs (14 lines):

diff -r 47d480bf29a8 -r 56e53da18297 gnu/dist/cvs/src/main.c
--- a/gnu/dist/cvs/src/main.c   Fri Oct 10 18:05:10 2003 +0000
+++ b/gnu/dist/cvs/src/main.c   Fri Oct 10 18:05:23 2003 +0000
@@ -350,6 +350,10 @@
 #ifndef DONT_USE_SIGNALS
     const char *name;
     char temp[10];
+    static int reenter = 0;
+
+    if (reenter++)
+       _exit(1);
 
     switch (sig)
     {



Home | Main Index | Thread Index | Old Index