Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/cron Set SIGCHLD to SIG_DFL in cron's child; instea...



details:   https://anonhg.NetBSD.org/src/rev/6e7b716359bb
branches:  trunk
changeset: 583649:6e7b716359bb
user:      heas <heas%NetBSD.org@localhost>
date:      Wed Aug 17 22:35:20 2005 +0000

description:
Set SIGCHLD to SIG_DFL in cron's child; instead of SIG_IGN, which alters the
behavior of wait() causing cron_pclose() to return bogus status and the logging
of bogus status in debug mode.

diffstat:

 usr.sbin/cron/do_command.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ee2a9dd86fea -r 6e7b716359bb usr.sbin/cron/do_command.c
--- a/usr.sbin/cron/do_command.c        Wed Aug 17 17:24:31 2005 +0000
+++ b/usr.sbin/cron/do_command.c        Wed Aug 17 22:35:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: do_command.c,v 1.16 2005/03/16 02:53:55 xtraeme Exp $  */
+/*     $NetBSD: do_command.c,v 1.17 2005/08/17 22:35:20 heas Exp $     */
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -22,7 +22,7 @@
 #if 0
 static char rcsid[] = "Id: do_command.c,v 2.12 1994/01/15 20:43:43 vixie Exp ";
 #else
-__RCSID("$NetBSD: do_command.c,v 1.16 2005/03/16 02:53:55 xtraeme Exp $");
+__RCSID("$NetBSD: do_command.c,v 1.17 2005/08/17 22:35:20 heas Exp $");
 #endif
 #endif
 
@@ -105,7 +105,7 @@
         * use wait() explictly.  so we have to disable the signal (which
         * was inherited from the parent).
         */
-       (void) signal(SIGCHLD, SIG_IGN);
+       (void) signal(SIGCHLD, SIG_DFL);
 #else
        /* on system-V systems, we are ignoring SIGCLD.  we have to stop
         * ignoring it now or the wait() in cron_pclose() won't work.



Home | Main Index | Thread Index | Old Index