From: H. Peter Anvin Date: Mon, 19 Dec 2005 22:23:05 GMT Subject: Re: EAGAIN? Message-ID: <43A732C9.2060509@zytor.com> In-Reply-To: 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