> What I meant about modifying files is, the select(2) behaviour suggested
> doesn't seem to allow me to know when one specific file is modified. [...]
> Actually I haven't a clue why I'd be interested in that information
> anyway.
"tail -f" for files. For directories, "sendmail" (instead of polling every
N seconds or using a FIFO).
Selecting for when a file lock goes away would be another good idea, though
you could implement that with a thread that blocks on the lock and then
writes a character into a pipe before dying. This method would actually be
nicer than a poll() because you'd have the lock when the poll (on the pipe,
of course) returns.
-- Matthias Urlichs | noris network GmbH | smurf@noris.de The quote was selected randomly. Really. | http://www.noris.de/~smurf/-- You know what charm is: a way of getting the answer yes without having asked any clear question. -Albert Camus- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html