fcntl/ioctl and O_NONBLOCK

Ralf Hildebrandt hildeb at www.stahl.bau.tu-bs.de
Sat Nov 27 11:34:13 EST 1999

On 26 Nov 1999 18:57:01 GMT, Donn Cave <donn at oz.net> wrote:

>I don't know about the ioctl, but you may not need it after all if
>you're already going to use select.  Select will tell you if the
>I/O would block, if so then don't read.

Ah! So a read only block if there's nothing at all to read?

>(And you can't read from both ends, "stdin" (i.e., Popen3.tochild)
>is opened for write and attempts to read from it will probably be

:) Yup. I read the sockets HOWTO by now, and select() on a file/pipe 
is more or less the same on unix. 

More information about the Python-list mailing list