diff options
author | root <root> | 2007-12-09 03:51:18 +0000 |
---|---|---|
committer | root <root> | 2007-12-09 03:51:18 +0000 |
commit | d41f6d02daac94ec00f9e62b79c1d31132b3cc1e (patch) | |
tree | aef834ceab3cab213b8002f09402c811ee1b33ad | |
parent | b4ea51ffb8ad1cf82bc52c03035eb335e2b4c88c (diff) |
*** empty log message ***
-rw-r--r-- | ev_epoll.c | 2 | ||||
-rw-r--r-- | ev_kqueue.c | 1 | ||||
-rw-r--r-- | ev_poll.c | 2 | ||||
-rw-r--r-- | ev_select.c | 2 |
4 files changed, 3 insertions, 4 deletions
@@ -89,7 +89,7 @@ epoll_init (EV_P_ int flags) fcntl (backend_fd, F_SETFD, FD_CLOEXEC); - backend_fudge = 2e-4; /* needed to compensate for epoll returning early */ + backend_fudge = 0.; /* kernel sources seem to indicate this to be zero */ backend_modify = epoll_modify; backend_poll = epoll_poll; diff --git a/ev_kqueue.c b/ev_kqueue.c index 3103db1..5f34545 100644 --- a/ev_kqueue.c +++ b/ev_kqueue.c @@ -153,7 +153,6 @@ kqueue_init (EV_P_ int flags) fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ - /* fudge *might* be zero from the documentation, but bsd docs are notoriously wrong */ backend_fudge = 1e-3; /* needed to compensate for kevent returning early */ backend_modify = kqueue_modify; backend_poll = kqueue_poll; @@ -108,7 +108,7 @@ poll_poll (EV_P_ ev_tstamp timeout) int inline_size poll_init (EV_P_ int flags) { - backend_fudge = 0; /* needed to compensate for select returning early, very conservative */ + backend_fudge = 0.; /* posix says this is zero */ backend_modify = poll_modify; backend_poll = poll_poll; diff --git a/ev_select.c b/ev_select.c index 3da0c61..ac2d23c 100644 --- a/ev_select.c +++ b/ev_select.c @@ -203,7 +203,7 @@ select_poll (EV_P_ ev_tstamp timeout) int inline_size select_init (EV_P_ int flags) { - backend_fudge = 0; /* needed to compensate for select returning early, very conservative */ + backend_fudge = 0.; /* posix says this is zero */ backend_modify = select_modify; backend_poll = select_poll; |