Jason Tackaberry wrote: > So, the new file is listed twice. Even when I exit the client and run > the query again: > > [EMAIL PROTECTED] ~]$ beacon --search keywords=foo > <beacon.File /home/tack/tmpfoo/foo.txt> > <beacon.File /home/tack/tmpfoo/foo.txt> > Query took 0.00483393669128 seconds
Found it. Inotify sends two signals for a new file: CREATE and
MODIFY. So in that case it was added twice. I added some additional
checks to prevent it. But maybe we should think about signals from
inotifier: what do we need and what is not (I guess CREATE is not
needed because of MODIFY).
Dischi
--
"Everything should be made as simple as possible, but not simpler."
(A.Einstein)
pgpKZiocYhi6a.pgp
Description: PGP signature
