On Thu, Dec 20, 2007 at 05:36:38PM +1000, Anton Umnikov <[EMAIL PROTECTED]>
wrote:
> I got error test_ev_stat.c:39: undefined reference to `ev_path_set'
> when I tried to compile simple test with using of ev_stat.
>
> Is ev_stat not availabe yet?
No, thats simply a typo, stat watchers were called path watchers before.
Use CVS, or separate initialisation like this:
ev_init (w, cb);
ev_stat_set (e, path, interval);
> /* /etc/passwd changed in some way */
also, the example doesn't show this (yet), but one should generally act
on stat changes one second after it was signalled, as stat() only has
a resolution of one second and one might otherwise skip updates (the
exception is when time is irrelevant and size suffices as change indicator
for example).
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED]
-=====/_/_//_/\_,_/ /_/\_\
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev