Subject: Re: EAGAIN?

From: "H. Peter Anvin" <[email-masked]>
Date: Mon, 19 Dec 2005 14:23:05 -0800

Linus Torvalds wrote:
> 
> 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