http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=95669367427640&w=2 (fwd)

Andrew Morgan morgan at transmeta.com
Thu Apr 27 13:54:19 EST 2000


In situations like this, its usual that you would check for EINTR and
retry the read if that's what you got. (EAGAIN is what you get when you
do non-blocking IO and there was nothing to read.)

Cheers

Andrew

John P Speno wrote:
> 
> On Thu, Apr 27, 2000 at 03:50:50AM +0200, Harold Gutch wrote:
> > On Thu, Apr 27, 2000 at 09:55:56AM +1000, Damien Miller wrote:
> > > +                   if (errno == EGAIN)
> > > +                           continue;
> >
> > Just wondering, as my only OpenBSD box currently is down -
> > shouldn't that be EAGAIN instead of EGAIN?
> 
> Yes, it should, and that still doesn't fix the problem I'm seeing with scp.
> My system trace seems to indicate that the problem occurs when a read() is
> interrupted.





More information about the openssh-unix-dev mailing list