[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 <kjw@rightsock.com> 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
- Re: Lost process output in pipe between Emacs and CVS, (continued)
- Re: Lost process output in pipe between Emacs and CVS, Richard Stallman, 2002/07/11
- Re: Lost process output in pipe between Emacs and CVS, Derek Robert Price, 2002/07/19
- Re: Lost process output in pipe between Emacs and CVS, Larry Jones, 2002/07/19
- Re: Lost process output in pipe between Emacs and CVS, Stefan Monnier, 2002/07/19
- Re: Lost process output in pipe between Emacs and CVS, Ian Lance Taylor, 2002/07/19
- Re: Lost process output in pipe between Emacs and CVS, Richard Stallman, 2002/07/21
- Re: Lost process output in pipe between Emacs and CVS, kevin wang, 2002/07/24
- Message not available
- Re: Lost process output in pipe between Emacs and CVS, Derek Robert Price, 2002/07/24
- Message not available
- Re: Lost process output in pipe between Emacs and CVS,
Ian Lance Taylor <=
- Re: Lost process output in pipe between Emacs and CVS, kevin wang, 2002/07/24
- Message not available
- Re: Lost process output in pipe between Emacs and CVS, Derek Robert Price, 2002/07/24
- Re: Lost process output in pipe between Emacs and CVS, kevin wang, 2002/07/24
- Re: Lost process output in pipe between Emacs and CVS, Derek Robert Price, 2002/07/24
- Message not available
- Re: Lost process output in pipe between Emacs and CVS, Ian Lance Taylor, 2002/07/24
- Re: Lost process output in pipe between Emacs and CVS, Richard Stallman, 2002/07/25
- Re: Lost process output in pipe between Emacs and CVS, Ian Lance Taylor, 2002/07/25
Re: Lost process output in pipe between Emacs and CVS, Richard Stallman, 2002/07/08