[Mono-dev] FAMWatcher race condition patch

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Apr 10 17:24:12 EDT 2006

On Sun, 2006-04-09 at 16:37 +1200, Thong Nguyen wrote:
> The FAM based FileSystemWatcher has problems monitoring directories
> recursively because FAM doesn't support this natively.
> FMAWatcher gets around this by telling FAM to monitor a subdirectory every
> time a sub directory is created.  This will work but there is a race
> condition that occurs when a sub directory is created and populated with
> files before FAM is told to monitor the new sub directory.  This results in
> files being created without the FSW raising the appropriate events.
> For example:
> If I'm monitoring the current dir and I do this:
> mkdir a; touch a/pok

Your patch is now in svn.
Thanks a lot.


More information about the Mono-devel-list mailing list