Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!mcsun!hp4nl!nikhefh!e07 From: e07@nikhefh.nikhef.nl (Eric Wassenaar) Newsgroups: comp.bugs.4bsd Subject: Re: error handling bug in sendoff() of sendmail 5.65 Message-ID: <1225@nikhefh.nikhef.nl> Date: 7 May 91 09:51:06 GMT References: Sender: e07@nikhef.nl (Eric Wassenaar) Organization: Nikhef-H, Amsterdam (the Netherlands). Lines: 18 In article , demizu@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@nikhef.nl