Permalink
Browse files

wait for RB_WAITFD_PRI also /cc 363

  • Loading branch information...
1 parent 936cdb2 commit e76ce6e28d34adf72fde2861e9ed886a5d1ccd52 @tmm1 tmm1 committed Feb 28, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/em.cpp
View
@@ -526,7 +526,7 @@ bool EventMachine_t::_RunEpollOnce()
int ret = 0;
#ifdef HAVE_RB_WAIT_FOR_SINGLE_FD
- if ((ret = rb_wait_for_single_fd(epfd, RB_WAITFD_IN, &tv)) < 1) {
+ if ((ret = rb_wait_for_single_fd(epfd, RB_WAITFD_IN|RB_WAITFD_PRI, &tv)) < 1) {
#else
fd_set fdreads;
@@ -605,7 +605,7 @@ bool EventMachine_t::_RunKqueueOnce()
int ret = 0;
#ifdef HAVE_RB_WAIT_FOR_SINGLE_FD
- if ((ret = rb_wait_for_single_fd(kqfd, RB_WAITFD_IN, &tv)) < 1) {
+ if ((ret = rb_wait_for_single_fd(kqfd, RB_WAITFD_IN|RB_WAITFD_PRI, &tv)) < 1) {
#else
fd_set fdreads;

0 comments on commit e76ce6e

Please sign in to comment.