Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make - Use _exit() instead of exit() in signal handl...



details:   https://anonhg.NetBSD.org/src/rev/550476416631
branches:  trunk
changeset: 779283:550476416631
user:      seanb <seanb%NetBSD.org@localhost>
date:      Tue May 15 17:51:51 2012 +0000

description:
- Use _exit() instead of exit() in signal handler since
  the latter isn't signal safe.

diffstat:

 usr.bin/make/compat.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r b486c14c7cbe -r 550476416631 usr.bin/make/compat.c
--- a/usr.bin/make/compat.c     Tue May 15 17:47:48 2012 +0000
+++ b/usr.bin/make/compat.c     Tue May 15 17:51:51 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat.c,v 1.84 2011/09/16 15:38:03 joerg Exp $        */
+/*     $NetBSD: compat.c,v 1.85 2012/05/15 17:51:51 seanb Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: compat.c,v 1.84 2011/09/16 15:38:03 joerg Exp $";
+static char rcsid[] = "$NetBSD: compat.c,v 1.85 2012/05/15 17:51:51 seanb Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)compat.c   8.2 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: compat.c,v 1.84 2011/09/16 15:38:03 joerg Exp $");
+__RCSID("$NetBSD: compat.c,v 1.85 2012/05/15 17:51:51 seanb Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -180,7 +180,7 @@
        }
 
     }
-    exit(signo);
+    _exit(signo);
 }
 
 /*-



Home | Main Index | Thread Index | Old Index