Re: EAGAIN?
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- Dec 19, 2005, 22:23 UTC
- Message-ID
- <43A732C9.2060509@zytor.com>
- In-Reply-To
- <Pine.LNX.4.64.0512191142410.4827@g5.osdl.org>
Linus Torvalds wrote:
Show 13 quoted lines
> > On Mon, 19 Dec 2005, Junio C Hamano wrote: > >>I was looking at "git grep -n EAGAIN" output and found that many >>places check "errno == EAGAIN" without checking "errno == >>EINTR", both for read(2) and write(2). > > > I suspect it's mostly in my code. It's a stupid quirk of mine. > > You might as well delete those thing, but yes, if you want to replace them > with testing both EAGAIN and EINTR, go right ahead. >
It might be that some of those should either be replaced by fwrite/fread or there should be a generic wrapper (usually called xwrite/xread).
-hpa