Daniel Storm writes:
This is what truss shows:
tralala# truss -p 9231
poll(0xFFBEF640, 1, -1) (sleeping...)
Received signal #1, SIGHUP, in poll() [caught]
poll(0xFFBEF640, 1, -1) Err#4 EINTR
setcontext(0xFFBEF328)
poll(0xFFBEF640, 1, -1) (sleeping...)
Received signal #1, SIGHUP, in poll() [default]
. ^^^^^^^
siginfo: SIGHUP pid=9387 uid=0
Yup, that's exactly what Solaris is doing. This is a simple fix.
Is there an obvious solution (other than not running makesmtpaccess).
Well, this is going to fix it.
--
Sam
Index: tcpd/tcpd.c
===================================================================
RCS file: /cvsroot/courier/libs/tcpd/tcpd.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -U3 -r1.31 -r1.32
--- tcpd/tcpd.c 11 Jul 2002 12:22:53 -0000 1.31
+++ tcpd/tcpd.c 1 Aug 2002 15:58:21 -0000 1.32
@@ -55,7 +55,7 @@
#include <netdb.h>
-static const char rcsid[]="$Id: tcpd.c,v 1.31 2002/07/11 12:22:53 mrsam Exp $";
+static const char rcsid[]="$Id: tcpd.c,v 1.32 2002/08/01 15:58:21 mrsam Exp $";
static const char *accessarg=0;
static const char *listenarg=0;
@@ -191,6 +191,8 @@
static RETSIGTYPE sighup(int n)
{
sighup_received=1;
+
+ signal(SIGHUP, sighup);
#if RETSIGTYPE != void
return (0)