Author akira
Recipients Andrew.Boettcher, ajaksu2, akira, astrand, cvrebert, ericpruitt, eryksun, giampaolo.rodola, janzert, josiahcarlson, ooooooooo, parameter, r.david.murray, rosslagerwall, sbt, techtonik, v+python
Date 2014-04-07.14:33:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396881193.11.0.31112538042.issue1191964@psf.upfronthosting.co.za>
In-reply-to
Content
> Also, Richard Oudkerk's claims above about not needing to use fcntl to swap flags is not correct. It's necessary to not block on reading, even if select is used. Select just guarantees that there is at least 1 byte or a closed handle, not that your full read will complete.

On Linux, `fcntl` is not necessary if you use `os.read(pipe, bufsize)` after `select` instead of `pipe.read(bufsize)`. `os.read` may just return less than `bufsize` bytes if they are not available.
History
Date User Action Args
2014-04-07 14:33:13akirasetrecipients: + akira, josiahcarlson, astrand, parameter, techtonik, giampaolo.rodola, ajaksu2, ooooooooo, v+python, r.david.murray, cvrebert, ericpruitt, Andrew.Boettcher, rosslagerwall, sbt, janzert, eryksun
2014-04-07 14:33:13akirasetmessageid: <1396881193.11.0.31112538042.issue1191964@psf.upfronthosting.co.za>
2014-04-07 14:33:13akiralinkissue1191964 messages
2014-04-07 14:33:12akiracreate