[erlang-questions] new version of file_monitor.erl - beta testers wanted
Richard Carlsson
richardc@REDACTED
Tue Jan 20 17:36:48 CET 2009
The blocking bug that Vlad Dumitrescu found was due to the handling of
atime on Windows, so I have redesigned the polling to avoid any
dependance on such things. It now ought to work on all platforms,
and calls should never block.
/Richard
Richard Carlsson wrote:
> I've been rewriting my file monitor module: it's still polling only, but
> now it's a gen_server, supports recursive monitoring, and is documented:
> http://svn.process-one.net/contribs/trunk/eunit/doc/file_monitor.html.
>
> The source code is here (it lives in the eunit project at present):
> http://svn.process-one.net/contribs/trunk/eunit/src/file_monitor.erl
>
> There is also an accompanying eunit test suite module:
> http://svn.process-one.net/contribs/trunk/eunit/src/file_monitor_tests.erl
>
> Any feedback (bugs, usability, performance, documentation) is welcome.
>
> I'll try to get it into OTP if it seems to be useful enough. The
> performance is fairly good; I've tried recursive monitoring on my entire
> OTP development tree containing something like 18 thousand files.
>
> /Richard
More information about the erlang-questions
mailing list