Satz%sri-tsc@sri-unix.UUCP (03/10/84)
From: Greg Satz <Satz@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);
}