Skip to content

Commit

Permalink
replicate select error asserts from epoll reactor in kqueue reactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Oct 12, 2010
1 parent c3b6969 commit 742bac4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/em.cpp
Expand Up @@ -594,6 +594,10 @@ bool EventMachine_t::_RunKqueueOnce()
FD_SET(kqfd, &fdreads);

if ((ret = rb_thread_select(kqfd + 1, &fdreads, NULL, NULL, &tv)) < 1) {
if (ret == -1) {
assert(errno != EINVAL);
assert(errno != EBADF);
}
return true;
}

Expand Down

0 comments on commit 742bac4

Please sign in to comment.