summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--ev.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/Changes b/Changes
index eeb63ff..3e01b7c 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,7 @@ Revision history for libev, a high-performance and full-featured event loop.
WISH? monotonic clocks times/GetTickCount for coarse corrections?
+TODO: "ev_stat on nfs"
3.48 Thu Oct 30 09:02:37 CET 2008
- further optimise away the EPOLL_CTL_ADD/MOD combo in the epoll
backend by assuming the kernel event mask hasn't changed if
diff --git a/ev.c b/ev.c
index a8b434f..a4b9018 100644
--- a/ev.c
+++ b/ev.c
@@ -289,6 +289,7 @@ extern "C" {
#if EV_USE_INOTIFY
# include <sys/utsname.h>
+# include <sys/statfs.h>
# include <sys/inotify.h>
/* some very old inotify.h headers don't have IN_DONT_FOLLOW */
# ifndef IN_DONT_FOLLOW
@@ -2434,7 +2435,7 @@ infy_add (EV_P_ ev_stat *w)
ev_timer_start (EV_A_ &w->timer); /* this is not race-free, so we still need to recheck periodically */
/* monitor some parent directory for speedup hints */
- /* note that exceeding the hardcoded limit is not a correctness issue, */
+ /* note that exceeding the hardcoded path limit is not a correctness issue, */
/* but an efficiency issue only */
if ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096)
{
@@ -2458,6 +2459,7 @@ infy_add (EV_P_ ev_stat *w)
}
}
else
+ todo, on nfs etc., we need to poll every 60s or so
ev_timer_stop (EV_A_ &w->timer); /* we can watch this in a race-free way */
if (w->wd >= 0)