Message215709
| 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: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 |
|