Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
libeio bugfix part 2
Reverts the change to deps/libeio/eio.c added in
04dd2d5
It wasn't a bug, I was just using eio incorrectly.

See http://lists.schmorp.de/pipermail/libev/2010q1/000855.html
  • Loading branch information
ry committed Jan 6, 2010
1 parent d9085ea commit 3f39772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions deps/libeio/eio.c
Expand Up @@ -548,9 +548,6 @@ static int etp_poll (void)
}
}

if (want_poll_cb)
want_poll_cb ();

errno = EAGAIN;
return -1;
}
Expand Down
4 changes: 3 additions & 1 deletion src/node.cc
Expand Up @@ -721,7 +721,9 @@ static void EIOCallback(EV_P_ ev_async *watcher, int revents) {
assert(revents == EV_ASYNC);
// Give control to EIO to process responses. In nearly every case
// EIOPromise::After() (file.cc) is called once EIO receives the response.
eio_poll();
if (-1 == eio_poll() && !ev_async_pending(&eio_watcher)) {
ev_async_send(EV_DEFAULT_UC_ &eio_watcher);
}
}

// EIOWantPoll() is called from the EIO thread pool each time an EIO
Expand Down

0 comments on commit 3f39772

Please sign in to comment.