From: Jacob Keller Date: Tue, 22 Sep 2015 06:26:48 GMT Subject: Re: [PATCHv3 03/13] xread_nonblock: add functionality to read from fds nonblockingly Message-ID: In-Reply-To: On Mon, Sep 21, 2015 at 5:10 PM, Junio C Hamano wrote: >> This wrapper just restarts on EINTR, but not on EAGAIN like xread >> does. This gives less guarantees on the actual reading rather than >> on returning fast. > > The last sentence is a bit hard to parse, by the way. > I'd imagine something more like: Provide a wrapper to read(), similar to xread(), that restarts on EINTR but not EAGAIN (or EWOULDBLOCK). This enables the caller to handle polling itself, possibly polling multiple sockets or performing some other action. Regards, Jake