From 72dedbe4624c9dfb3b928a1c3e2d4d5c23bb144c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Aug 2009 18:48:17 +0000 Subject: *** empty log message *** --- Changes | 2 ++ ev.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index a1c9216..3191cb1 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for libev, a high-performance and full-featured event loop. + - backport inotify code to C89. + 3.8 Sun Aug 9 14:30:45 CEST 2009 - incompatible change: do not necessarily reset signal handler to SIG_DFL when a sighandler is stopped. diff --git a/ev.c b/ev.c index bfb87f2..4e19864 100644 --- a/ev.c +++ b/ev.c @@ -2863,12 +2863,13 @@ infy_add (EV_P_ ev_stat *w) if (w->wd >= 0) { + struct statfs sfs; + wlist_add (&fs_hash [w->wd & (EV_INOTIFY_HASHSIZE - 1)].head, (WL)w); /* now local changes will be tracked by inotify, but remote changes won't */ /* unless the filesystem it known to be local, we therefore still poll */ /* also do poll on <2.6.25, but with normal frequency */ - struct statfs sfs; if (fs_2625 && !statfs (w->path, &sfs)) if (sfs.f_type == 0x1373 /* devfs */ -- cgit v1.2.3