Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Actually SIG_DFL the correct signal (not SIGINT...



details:   https://anonhg.NetBSD.org/src/rev/c7fa1cc2ccd1
branches:  trunk
changeset: 588207:c7fa1cc2ccd1
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat Feb 11 20:58:53 2006 +0000

description:
Actually SIG_DFL the correct signal (not SIGINT every time) just prior to
exec'ing a program in the child.

diffstat:

 usr.bin/make/job.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r 8a6cf5f731fd -r c7fa1cc2ccd1 usr.bin/make/job.c
--- a/usr.bin/make/job.c        Sat Feb 11 20:56:29 2006 +0000
+++ b/usr.bin/make/job.c        Sat Feb 11 20:58:53 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.103 2006/01/22 19:54:55 dsl Exp $    */
+/*     $NetBSD: job.c,v 1.104 2006/02/11 20:58:53 dsl Exp $    */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: job.c,v 1.103 2006/01/22 19:54:55 dsl Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.104 2006/02/11 20:58:53 dsl Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)job.c      8.2 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: job.c,v 1.103 2006/01/22 19:54:55 dsl Exp $");
+__RCSID("$NetBSD: job.c,v 1.104 2006/02/11 20:58:53 dsl Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -329,7 +329,7 @@
                                 * limits or migration home */
 
 
-sigset_t       caught_signals; /* Set of signals we handle */
+static sigset_t caught_signals;        /* Set of signals we handle */
 #if defined(USE_PGRP) && defined(SYSV)
 # define KILL(pid, sig)                kill(-(pid), (sig))
 #else
@@ -397,7 +397,7 @@
 {
        if (sigprocmask(SIG_BLOCK, &caught_signals, omaskp) != 0) {
                Punt("JobSigLock: sigprocmask: %s", strerror(errno));
-       sigemptyset(omaskp);
+               sigemptyset(omaskp);
        }
 }
 
@@ -2815,7 +2815,7 @@
 {
 #define DELSIG(s)                                      \
     if (sigismember(&caught_signals, s)) {             \
-       (void)signal(SIGINT, SIG_DFL);                  \
+       (void)signal(s, SIG_DFL);                       \
     }
 
     DELSIG(SIGINT)



Home | Main Index | Thread Index | Old Index