As far as I can tell, libuv on OS X uses FSEvents to watch directories but 
kqueue to watch files, resulting in one open fd per watched file.  Combined 
with OS X's insanely small default fd table, this makes it tough to build a 
dropbox style sync utility on top of libuv.

The FSEvents doc says that since 10.7, FSEvents can watch files as well as 
directories.  But the libuv code still seems to test for S_IFDIR and 
otherwise goto fallback (kqueue).

I'm wondering whether a pure FSEvents file watcher isn't in libuv because 
it wouldn't work for some reason, or because it's just a low priority.  If 
the latter, I'd be happy to try and come up with a patch.

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to