another sendmail problem

Satz%sri-tsc at sri-unix.UUCP Satz%sri-tsc at sri-unix.UUCP
Sat Mar 10 12:33:00 AEST 1984


From:  Greg Satz <Satz at sri-tsc>


If util.c/sfgets times out during a read, a line gets passed to syserr:

554 sfgets: timeout on read (mailer may be hung)

The problem is that errno is zero so the arpanet error number becomes
554 (a permanent failure) instead of a 451 (transient).

*** util.cO	Fri Mar  9 00:15:27 1984
--- util.c	Fri Mar  9 18:26:07 1984
***************
*** 643,648
  	{
  		if (setjmp(CtxReadTimeout) != 0)
  		{
  			syserr("sfgets: timeout on read (mailer may be hung)");
  			return (NULL);
  		}

--- 643,649 -----
  	{
  		if (setjmp(CtxReadTimeout) != 0)
  		{
+ 			errno = ETIMEDOUT;
  			syserr("sfgets: timeout on read (mailer may be hung)");
  			return (NULL);
  		}



More information about the Comp.unix.wizards mailing list