Message215709
> 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. |
|
Date |
User |
Action |
Args |
2014-04-07 14:33:13 | akira | set | recipients:
+ 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:13 | akira | set | messageid: <1396881193.11.0.31112538042.issue1191964@psf.upfronthosting.co.za> |
2014-04-07 14:33:13 | akira | link | issue1191964 messages |
2014-04-07 14:33:12 | akira | create | |
|