Messages in this thread | | | From | Stephen Hemminger <> | Subject | Re: -mm -> 2.6.13 merge status | Date | Tue, 21 Jun 2005 13:52:13 -0700 |
| |
On Tue, 21 Jun 2005 14:02:09 -0600 Zan Lynx <zlynx@acm.org> wrote:
> On Tue, 2005-06-21 at 15:38 -0400, Robert Love wrote: > > On Tue, 2005-06-21 at 12:22 -0700, Christoph Lameter wrote: > > > > > I noticed that select() is not working on real files. Could inotify > > > be used to fix select()? > > > > Select the system call? It should work fine. ;-) > > > > Who is confused? > > > > Robert Love > > Sounds interesting. tail -f could use it. Instead of sleep 1, seek to > current position, read to eof; just select() for read on the file and > sleep in select() until someone else writes to that file. > > I've never tried doing that. It might work, for all I know. > -- > Zan Lynx <zlynx@acm.org>
Posix requires select() of regular files always return true: http://www.opengroup.org/onlinepubs/009695399/functions/select.html
File descriptors associated with regular files shall always select true for ready to read, ready to write, and error conditions.
-- Stephen Hemminger <shemminger@osdl.org> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |