kevin wang <[EMAIL PROTECTED]> writes:

>  From Richard Stallman
> >       If a buffer flush fails with EAGAIN during
> >     printf, what should happen?
> > 
> > printf should retry, perhaps after a short sleep, and thus more or
> > less emulate the behavior with an ordinary blocking descriptor.
> 
> If you want to emulate blocking behaviour, then why not USE blocking
> behaviour?
> 
> It doesn't make any sense to make the default behaviour of non-blocking
> act like blocking.

Yes, but stdio can't handle non-blocking descriptors correctly, as I
described in a previous note.  I read RMS's suggestion as saying that
since stdio can't handle non-blocking descriptors, it will do least
harm by blocking on them.  Clearly using stdio on a non-blocking
descriptor is an error; however, as we see in the CVS case, sometimes
that error is difficult to avoid.

Ian

_______________________________________________
Bug-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-cvs

Reply via email to