Marc Lehmann wrote:
The delay is only there on operating systems that don't allow implementingev_stat is suboptimal for my case (due to the delay),it in other ways (so yes, on OS X there is a delay).
What I have currently managed to get working is a combination of the idle watcher, and the stat watcher. The idle watcher reads the file, until there is no more file to read, then the idle watcher switches itself off. The stat watcher then switches the idle watcher back on again if a modification to the file is detected. Reading the file in one go won't work for me, as it will potentially block the event loop.
The target environment is Linux, which supports inotify, so in theory there should be little or no delay once in live use.
Regards, Graham --
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ libev mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
