Re: Non-blocking directory watching



"Matthew" <mmundy1@xxxxxxxxx> wrote:
Hello all.

Is there a way to watch a directory for files w/o blocking? I was
hoping there was something similar to select but I have found nothing.

I can't think of a way of watching a directory *with* blocking (I'd just do
polling which may be inefficient but doesn't block waiting for a change to
happen). If you have such a method (efficient but blocking) in mind and
you share it with us, I might be able to help you make it nonblocking.

inotify will not work b/c of the linux kernel requirement. I'd like
to stay cross-platform


Xho

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.



Relevant Pages

  • Re: BEWARE!....Google has assigned a manager to the Alt.Fan.Rush-Limbaugh group
    ... watch over us in the alt.fan.rush-limbaugh group. ... It is limiting ... topics, removing some messages,and blocking comments to messages that ...
    (alt.politics.bush)
  • Re: Team orders and blocking
    ... cars, pit stop timing etc) it will be possible to slow another car down ... significantly without blocking. ... the pit wall). ... If anyone wants a lesson in legal blocking, they should watch the final ...
    (rec.autos.sport.f1)
  • Re: Alonso penalised for blocking Massa
    ... watch this, then make ur judgement:) ... Blocking? ... Assuming this is the correct lap. ...
    (rec.autos.sport.f1)
  • Non-blocking directory watching
    ... Is there a way to watch a directory for files w/o blocking? ... inotify will not work b/c of the linux kernel requirement. ... to stay cross-platform ...
    (comp.lang.perl.misc)
  • Re: Blocking [socket -async] command ?
    ... I believe that it is the IP lookup that causes the blocking. ... and it's because the only cross-platform way to look up hostnames ... little coding effort... ...
    (comp.lang.tcl)