Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc.

2001-01-12 Thread Dan Kegel
Michael Rothwell ([EMAIL PROTECTED]) wrote: > How about using fcntl(), O_ASYNC and SIGIO? Don't think that's supported for disk files yet, at least by the kernel. glibc does aio emulation with threads, which isn't great. > Or maybe a broader question: > what's the preferred/working way to do

Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc.

2001-01-12 Thread Alexander V. Lukyanov
On Fri, Jan 12, 2001 at 09:40:55AM +, Alan Cox wrote: > > be true; but perhaps I am doing something wrong. If I open() a file (on > > 2.2.18) from a floppy or NFS mount (to test in a slow environment) with > > O_NONBLOCK|O_RDONLY, read() will still block. If I try to select() on > > the file d

Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc.

2001-01-12 Thread Andries . Brouwer
From: Chris Wedgwood <[EMAIL PROTECTED]> On Thu, Jan 11, 2001 at 09:34:08PM -0500, Michael Rothwell wrote: The man pages for open, read and write say that if a file is opened using the O_NONBLOCK flag, then read() and write() will always return immediately and not

Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc.

2001-01-12 Thread Michael Rothwell
Alan Cox wrote: > > > using the O_NONBLOCK flag, then read() and write() will always return > > immediately and not block the calling process. This does not appear to > > be true; but perhaps I am doing something wrong. If I open() a file (on > > 2.2.18) from a floppy or NFS mount (to test in a s

Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc.

2001-01-12 Thread Alan Cox
> using the O_NONBLOCK flag, then read() and write() will always return > immediately and not block the calling process. This does not appear to > be true; but perhaps I am doing something wrong. If I open() a file (on > 2.2.18) from a floppy or NFS mount (to test in a slow environment) with > O_N

O_NONBLOCK, read(), select(), NFS, Ext2, etc.

2001-01-11 Thread Michael Rothwell
The man pages for open, read and write say that if a file is opened using the O_NONBLOCK flag, then read() and write() will always return immediately and not block the calling process. This does not appear to be true; but perhaps I am doing something wrong. If I open() a file (on 2.2.18) from a fl