Marc Lehmann schmorp at schmorp.de
Sat Dec 6 19:18:34 CET 2008

On Sat, Dec 06, 2008 at 03:34:36PM +0200, Graham Leggett <minfrin at sharp.fm> wrote:
>> The solution is to simply read from the file, and not first try to use an
>> I/O watcher.
> So the io watcher shouldn't be used for files?

No, it makes no sense.

> That came from the man page for "read" on MacOSX, but having had long  
> experience with dealing with portable software, just because it says it  
> in a man page on one OS doesn't mean it is necessarily true everywhere.

You could read the OS-independent manpage for read (from the SUS), which
os x claims to follow, accoridng to apple :)

> ev_stat is suboptimal for my case (due to the delay),
The delay is only there on operating systems that don't allow implementing
it in other ways (so yes, on OS X there is a delay).

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at goof.com
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list