From cf6dc082caf61c46689341e9c515f7ae81ffbce2 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 21 Apr 2012 05:57:49 +0200 Subject: [PATCH] unix: handle EWOULDBLOCK in uv__read() --- src/unix/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/stream.c b/src/unix/stream.c index bb63dded..6f0d1378 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -562,7 +562,7 @@ static void uv__read(uv_stream_t* stream) { if (nread < 0) { /* Error */ - if (errno == EAGAIN) { + if (errno == EAGAIN || errno == EWOULDBLOCK) { /* Wait for the next one. */ if (stream->flags & UV_READING) { ev_io_start(ev, &stream->read_watcher);