O_NONBLOCK, read(), select(), NFS, Ext2, etc.
Michael Rothwell (rothwell@holly-springs.nc.us)
11 Jan 2001 21:34:08 -0500
- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Mohammad A. Haque: "various issues/questions"
- Next message: Jim M.: "[depmod] question"
- Previous message: Linus Torvalds: "Re: 2.4.1-pre1 breaks XFree 4.0.2 and "w""
- Next in thread: Chris Wedgwood: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Chris Wedgwood: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Alan Cox: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Michael Rothwell: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Andries.Brouwer@cwi.nl: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Dan Kegel: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
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 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 descriptor, select() always returns 0.
Is there a way to make open(), read() and write() live up to their
manpages?
-M
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
- Next message: Mohammad A. Haque: "various issues/questions"
- Next message: Jim M.: "[depmod] question"
- Previous message: Linus Torvalds: "Re: 2.4.1-pre1 breaks XFree 4.0.2 and "w""
- Next in thread: Chris Wedgwood: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Chris Wedgwood: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Alan Cox: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Michael Rothwell: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Andries.Brouwer@cwi.nl: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."
- Reply: Dan Kegel: "Re: O_NONBLOCK, read(), select(), NFS, Ext2, etc."