On Fri, 12 May 2000, Peter Samuel wrote:

> I'm seeing some strange behaviour with fastforward-0.51 and qmail-1.03
> on Solaris-2.5.1. No patches applied to any DJB software.
> 
[ stuff deleted ]

Basically, if fastforward was setup to call a program EG

    teladm-postmaster@:
            | forward\ `teladm\ $SENDER`\ &&\ exit\ 99,
    ;

It would NOT honour the 99 exit status. It would exit with 111 and
cause a deferral. This results in multiple deliveries until the
queueulifetime value is reached.

Looking at the fastforward code shows:

    217      wait_pid(&wstat,child);
    218      if (wait_crashed(wstat))
    219     strerr_die4sys(111,FATAL,"child crashed in ",arg,": ");
    220     
    221      switch(wait_exitcode(wstat)) {
    222     case 64: case 65: case 70: case 76: case 77: case 78: case 112:
    223     case 100: _exit(100);
    224     case 0: break;
    225     default: _exit(111);
    226      }

Dan, any reason why you don't have an extra case to handle a child
whose exit status is 99?

Does anyone else consider this a bug?

Regards
Peter
----------
Peter Samuel                                [EMAIL PROTECTED]
Technical Consultant                        or at present:
eServ. Pty Ltd                              [EMAIL PROTECTED]
Phone: +61 2 9206 3410                      Fax: +61 2 9281 1301

"If you kill all your unhappy customers, you'll only have happy ones left"

Reply via email to