I've been playing with FAM 2.6.10 on my SUSE9.0 Linux machine. SUSE seem to
have applied the dnotify patch to their package, and it works fine.
Only, responses are a bit slow - I get change notification after 1 to 4
seconds after I actually change the monitored file. Is that normal? Or does
it imply the dnotify isn't working and I'm waiting for FAM to poll or
something?
On a separate note, I was exploring FAM on the understanding that it could
asyncronously tell me when a file had changed. I've done this using pure
dnotify where a signal is generated when the file (i.e. directory) changes.
From what I've read, FAM doesn't do that. I have to block, waiting for a
event, or I have to poll occasionally. Do I understand that right? If so, if
I'm writing an application which is constantly busy (i.e. not able to block),
and which gets into tight loops where polling isn't easy, is there a simple
way of getting an asyncronous signal from FAM?
|