error handling bug in sendoff() of sendmail 5.65

Eric Wassenaar e07 at nikhefh.nikhef.nl
Tue May 7 19:51:06 AEST 1991


In article <DEMIZU.91May4162444 at freezer.nff.ncl.omron.co.jp>, demizu at nff.ncl.omron.co.jp (DEMIZU Noritoshi) writes:
> So I think sendoff() returns ExitStat in stead of -1.  And the global
> variable ExitStat should be set to have proper status in openmailer().

sendoff() should indeed return ExitStat instead of -1 if the call
to openmailer() fails.
However, openmailer() will already have stored a proper status
in ExitStat because it calls syserr() before failing, and syserr()
sets ExitStat to EX_OSERR or EX_SOFTWARE.
It makes sense though, to override this by EX_TEMPFAIL in case of
a failing fork().

Eric Wassenaar
-- 
Organization: NIKHEF-H, National Institute for Nuclear and High-Energy Physics
Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands
Phone: +31 20 592 0412, Home: +31 20 6909449, Telefax: +31 20 592 5155
Internet: e07 at nikhef.nl



More information about the Comp.bugs.4bsd.ucb-fixes mailing list