fcntl module on Linux and nonblocking I/O

Martin v. Loewis martin at v.loewis.de
Thu Sep 26 13:53:14 EDT 2002


skoranda at uwm.edu (Scott Koranda) writes:

> I just installed python 2.2.1 on my RH 7.3 Linux box and noticed
> that the fcntl module does not appear to have O_NDELAY, FNDELAY,
> or anything that appears similar.
[...]
> Without such a constant defined in the fcntl module how can I make a
> pipe non-blocking?

Use os.O_NDELAY.

Regards,
Martin



More information about the Python-list mailing list