bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lost process output in pipe between Emacs and CVS


From: Ian Lance Taylor
Subject: Re: Lost process output in pipe between Emacs and CVS
Date: 24 Jul 2002 20:13:07 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

kevin wang <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]