Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make kill(2) is more appropriate and more portable t...



details:   https://anonhg.NetBSD.org/src/rev/f0d0612592d5
branches:  trunk
changeset: 779617:f0d0612592d5
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Jun 05 17:31:04 2012 +0000

description:
kill(2) is more appropriate and more portable than raise(3)

diffstat:

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

diffs (35 lines):

diff -r 4ab578a4f08d -r f0d0612592d5 usr.bin/make/compat.c
--- a/usr.bin/make/compat.c     Tue Jun 05 17:22:01 2012 +0000
+++ b/usr.bin/make/compat.c     Tue Jun 05 17:31:04 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat.c,v 1.87 2012/06/05 06:11:51 sjg Exp $  */
+/*     $NetBSD: compat.c,v 1.88 2012/06/05 17:31:04 sjg 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.87 2012/06/05 06:11:51 sjg Exp $";
+static char rcsid[] = "$NetBSD: compat.c,v 1.88 2012/06/05 17:31:04 sjg 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.87 2012/06/05 06:11:51 sjg Exp $");
+__RCSID("$NetBSD: compat.c,v 1.88 2012/06/05 17:31:04 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -183,7 +183,7 @@
     if (signo == SIGQUIT)
        _exit(signo);
     bmake_signal(signo, SIG_DFL);
-    raise(signo);
+    kill(myPid, signo);
 }
 
 /*-



Home | Main Index | Thread Index | Old Index