Blake,

I think it was already:

$ cvs diff -r 1.19 -r 1.20 serverchild.c
Index: serverchild.c
===================================================================
RCS file: /cvsroot-dbmail/dbmail/serverchild.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -r1.19 -r1.20
2c2
<   $Id: serverchild.c,v 1.19 2004/03/19 16:27:38 ilja Exp $
---
>   $Id: serverchild.c,v 1.20 2004/04/05 13:52:03 ilja Exp $
74c74,75
<       /* perform reinit at SIGHUP otherwise exit */
---
>       /* perform reinit at SIGHUP otherwise exit, but do nothing on
>        *  SIGCHLD*/
75a77,80
>       case SIGCHLD:
>               trace(TRACE_DEBUG, "ChildSighandler(): SIGCHLD received..."
>                     "ignoring");
>               break;
138d142
<
212a217
>       sigaction(SIGCHLD, &act, 0);




Blake Mitchell wrote:
When you get a chance, could you check this fix in. Right now I've got a cron job cleaning out the postfix deferred queue, which is suboptimal.

Ilja Booij wrote:


Ilja Booij wrote:

I was wrong:

There are two problems:
dbmail-smtp: for some reason, the dbmail-smtp returns EX_TEMPFAIL when there are only external forwards to deliver

dbmail-lmtpd: after closing the pipe, the daemon process (a child of the original daemon) gets a SIGCHLD (of course), but it reacts to this by killing itself! Of course, it should ignore this signal.


This last problem I've dealt with. In serverchild.c, I've added a signal handler ChildSignalHandler() as signal handler for SIGCHLD, and use that function to ignore the SIGCHLD. Somehow, just setting signal(SIGCHLD, SIG_IGN) did not work like I wanted it to. It interfered with the server parent signal handler.

Ilja


Ilja


_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev


_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev


--
  ________________________________________________________________
  Paul Stevens                                         [EMAIL PROTECTED]
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands_______________________________________www.nfg.nl

Reply via email to