lkml.org 
[lkml]   [1998]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: VFS/fcntl() feature [PATCH]
Date
  Jamie Lokier <lkd@tantalophile.demon.co.uk> writes:
>
> If we're going to give strange meanings to states, it would
> surely be tidier to add some new POLLXXX flags, with semantics that have
> meaning for both files and directories.
>
Right.

> 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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.657 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site