https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198727

--- Comment #7 from Ivan Radovanovic <[email protected]> ---
I finally found some time to implement this watcher properly for FreeBSD (note:
this probably makes it incompatible with OSX (I don't have way to test)). 

File descriptor limit is completely removed and unless files themselves are
monitored for modification (ie for size change, attribute change and similar)
descriptors are used only for directories. Solution is as fast as possible
while still being as close to Microsoft's spec as possible (unfortunately on
FreeBSD that means re-reading directory after each modification (although that
is done directly using OS libc interface, I don't know how fast/slow it would
be on huge directories)).

This is not really patch, but rather complete new implementation (I think best
idea would be actually to rename this one to FreeBsdWatcher and to patch
Makefile to include it in build - maybe it would be possible to have it
included in Mono's HEAD that way)

There are 2 patch files included - one for FileSystemWatcher to add necessary
function to directly dispatch events, and second for changing KeventWatcher
(both files are in patch-files-4.2.2.10.tar.xz archive).

I think this closes this issue once for all (and hopefully all FileWatcher
related issues on FreeBSD).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-mono
To unsubscribe, send any mail to "[email protected]"

Reply via email to