summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2007-12-09 03:51:18 +0000
committerroot <root>2007-12-09 03:51:18 +0000
commitd41f6d02daac94ec00f9e62b79c1d31132b3cc1e (patch)
treeaef834ceab3cab213b8002f09402c811ee1b33ad
parentb4ea51ffb8ad1cf82bc52c03035eb335e2b4c88c (diff)
*** empty log message ***
-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;