diff options
author | root <root> | 2007-12-09 02:12:43 +0000 |
---|---|---|
committer | root <root> | 2007-12-09 02:12:43 +0000 |
commit | c92198a5c36ea9d1b1e0fae8254eb5609553bbf9 (patch) | |
tree | 5cd47d8ed445134572e63340e88d4a92f4b8d99f /ev_epoll.c | |
parent | fe7222913a6e42b65bfd92bc38479714316cfaf3 (diff) |
µ-opts
Diffstat (limited to 'ev_epoll.c')
-rw-r--r-- | ev_epoll.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ epoll_modify (EV_P_ int fd, int oev, int nev) (nev & EV_READ ? EPOLLIN : 0) | (nev & EV_WRITE ? EPOLLOUT : 0); - if (epoll_ctl (backend_fd, mode, fd, &ev)) + if (expect_false (epoll_ctl (backend_fd, mode, fd, &ev))) if (errno != ENOENT /* on ENOENT the fd went away, so try to do the right thing */ || (nev && epoll_ctl (backend_fd, EPOLL_CTL_ADD, fd, &ev))) fd_kill (EV_A_ fd); @@ -54,7 +54,7 @@ epoll_poll (EV_P_ ev_tstamp timeout) int i; int eventcnt = epoll_wait (backend_fd, epoll_events, epoll_eventmax, (int)ceil (timeout * 1000.)); - if (eventcnt < 0) + if (expect_false (eventcnt < 0)) { if (errno != EINTR) syserr ("(libev) epoll_wait"); |