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 sig_atomic_t for caught_sigchld



details:   https://anonhg.NetBSD.org/src/rev/46e80a8d4f0e
branches:  trunk
changeset: 959117:46e80a8d4f0e
user:      sjg <sjg%NetBSD.org@localhost>
date:      Mon Feb 01 17:10:23 2021 +0000

description:
Use sig_atomic_t for caught_sigchld

diffstat:

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

diffs (27 lines):

diff -r d25396b2851f -r 46e80a8d4f0e usr.bin/make/job.c
--- a/usr.bin/make/job.c        Mon Feb 01 06:59:37 2021 +0000
+++ b/usr.bin/make/job.c        Mon Feb 01 17:10:23 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.405 2021/01/31 07:07:53 sjg Exp $    */
+/*     $NetBSD: job.c,v 1.406 2021/02/01 17:10:23 sjg Exp $    */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -143,7 +143,7 @@
 #include "trace.h"
 
 /*     "@(#)job.c      8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: job.c,v 1.405 2021/01/31 07:07:53 sjg Exp $");
+MAKE_RCSID("$NetBSD: job.c,v 1.406 2021/02/01 17:10:23 sjg Exp $");
 
 /*
  * A shell defines how the commands are run.  All commands for a target are
@@ -439,7 +439,7 @@
 };
 
 static sigset_t caught_signals;        /* Set of signals we handle */
-static volatile int caught_sigchld;
+static volatile sig_atomic_t caught_sigchld;
 
 static void JobDoOutput(Job *, Boolean);
 static void JobInterrupt(Boolean, int) MAKE_ATTR_DEAD;



Home | Main Index | Thread Index | Old Index