Subject: pkg/13267: sendmail 8.11.4 SIGHUP patch (from www.sendmail.org)
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 06/20/2001 22:14:30
>Number:         13267
>Category:       pkg
>Synopsis:       sendmail 8.11.4 SIGHUP patch (from www.sendmail.org)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 20 22:13:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Release:        NetBSD-current Wed Jun 20 22:10:22 PDT 2001
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Environment:

System: NetBSD capsicum.wsrcc.com 1.5W NetBSD 1.5W (WSRCC_ATHLON) #27: Sun Jun 17 20:14:59 PDT 2001 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/src/sys/arch/i386/compile/WSRCC_ATHLON i386
Architecture: i386
Machine: i386

>Description:

	due to a race SIGHUP may kill sendmail 8.11.4 instead of
	restarting.

>How-To-Repeat:

	kill -HUP <pid-of-sendmail>

>Fix:

	from: http://www.sendmail.org/~ca/email/patches/daemon.c.8.401.4.62

Index: daemon.c
===================================================================
RCS file: /cvs/sendmail/daemon.c,v
retrieving revision 8.401.4.62
diff -u -r8.401.4.62 daemon.c
--- daemon.c	2001/06/07 23:16:08	8.401.4.62
+++ daemon.c	2001/06/18 16:35:24
@@ -2613,6 +2612,7 @@
 	}
 
 	/* need to allow signals before execve() so make them harmless */
+	clear_events();
 	oalrm = setsignal(SIGALRM, SIG_DFL);
 	ochld = setsignal(SIGCHLD, SIG_DFL);
 	ohup = setsignal(SIGHUP, SIG_DFL);
>Release-Note:
>Audit-Trail:
>Unformatted: