fixed the io semaphore handling error when DEVPOLL is activated

This commit is contained in:
hyunghwan.chung
2017-06-27 13:47:58 +00:00
parent 6a721bb62a
commit 979040e7b3
5 changed files with 16 additions and 15 deletions

View File

@ -790,6 +790,8 @@ static int _add_poll_fd (moo_t* moo, int fd, int event_mask, moo_oow_t event_dat
MOO_DEBUG2 (moo, "Cannot add file descriptor %d to devpoll - %hs\n", fd, strerror(errno));
return -1;
}
xtn->epd.ptr[fd] = event_data;
return 0;
#elif defined(USE_EPOLL)
@ -838,6 +840,7 @@ static int _add_poll_fd (moo_t* moo, int fd, int event_mask, moo_oow_t event_dat
xtn->ev.reg.ptr[xtn->ev.reg.len].revents = 0;
xtn->ev.reg.len++;
xtn->epd.ptr[fd] = event_data;
return 0;
#else

View File

@ -404,7 +404,7 @@ static_modtab[] =
{ "stdio", moo_mod_stdio },
#if defined(MOO_ENABLE_MOD_X11)
{ "x11", moo_mod_x11 },
{ "x11.win", moo_mod_x11_win },
/*{ "x11.win", moo_mod_x11_win },*/
#endif
};
#endif