Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2016 00:03:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        mono@FreeBSD.org
Subject:   [Bug 198727] [PATCH] lang/mono FileSystemWatcher (kevent) deadlock problem
Message-ID:  <bug-198727-23699-X1YItW1eFp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-198727-23699@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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

--- Comment #7 from Ivan Radovanovic <radovanovic@gmail.com> ---
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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198727-23699-X1YItW1eFp>