Re: [PATCH 4/8] strbuf: add strbuf_read_once to read without blocking

2015-12-14 Thread Stefan Beller
On Mon, Dec 14, 2015 at 3:16 PM, Eric Sunshine wrote: > On Mon, Dec 14, 2015 at 2:37 PM, Stefan Beller wrote: >> The new call will read from a file descriptor into a strbuf once. The >> underlying call xread_nonblock is meant to execute without blocking if >> the file descriptor is set to O_NONBL

Re: [PATCH 4/8] strbuf: add strbuf_read_once to read without blocking

2015-12-14 Thread Eric Sunshine
On Mon, Dec 14, 2015 at 2:37 PM, Stefan Beller wrote: > The new call will read from a file descriptor into a strbuf once. The > underlying call xread_nonblock is meant to execute without blocking if > the file descriptor is set to O_NONBLOCK. It is a bug to call > strbuf_read_once on a file descri

[PATCH 4/8] strbuf: add strbuf_read_once to read without blocking

2015-12-14 Thread Stefan Beller
The new call will read from a file descriptor into a strbuf once. The underlying call xread_nonblock is meant to execute without blocking if the file descriptor is set to O_NONBLOCK. It is a bug to call strbuf_read_once on a file descriptor which would block. Signed-off-by: Stefan Beller Signed-o

[PATCH 4/8] strbuf: add strbuf_read_once to read without blocking

2015-09-28 Thread Stefan Beller
The new call will read from a file descriptor into a strbuf once. The underlying call xread_nonblock is meant to execute without blocking if the file descriptor is set to O_NONBLOCK. It is a bug to call strbuf_read_once on a file descriptor which would block. Signed-off-by: Stefan Beller Signed-o