summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev_epoll.c2
-rw-r--r--ev_kqueue.c1
-rw-r--r--ev_poll.c2
-rw-r--r--ev_select.c2
4 files changed, 3 insertions, 4 deletions
diff --git a/ev_epoll.c b/ev_epoll.c
index d9ba803..bb56218 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -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;
diff --git a/ev_poll.c b/ev_poll.c
index 698f37c..d609833 100644
--- a/ev_poll.c
+++ b/ev_poll.c
@@ -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;