Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: handle EWOULDBLOCK in uv__server_io()
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Apr 21, 2012
1 parent a29892d commit a8b5235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/stream.c
Expand Up @@ -187,7 +187,7 @@ void uv__server_io(EV_P_ ev_io* watcher, int revents) {
fd = uv__accept(stream->fd, (struct sockaddr*)&addr, sizeof addr);

if (fd < 0) {
if (errno == EAGAIN) {
if (errno == EAGAIN || errno == EWOULDBLOCK) {
/* No problem. */
return;
} else if (errno == EMFILE) {
Expand Down

0 comments on commit a8b5235

Please sign in to comment.