From a55a33625ea60f6c840a739cfc3b568bb40674ee 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 cc6c5fab..b71f9bdd 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -596,7 +596,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);