Message187729
Ah, right. That number is the pipe buffer size (1032 is F_GETPIPE_SZ).
It's 65536 here, so when the test tries to write 1 million bytes on a pipe, the write blocks as expected (you can read the comments to understand why the test is doint that). But with a 1 MiB buffer size, the write doesn't block and therefore doesn't have to wait for the auxiliary thread to start and read from the pipe buffer.
Something else, what does the following say:
>>> r, w = os.pipe()
>>> fcntl.fcntl(r, 1031, 1000) |
|
Date |
User |
Action |
Args |
2013-04-24 19:24:58 | pitrou | set | recipients:
+ pitrou, neologix, David.Edelsohn |
2013-04-24 19:24:58 | pitrou | set | messageid: <1366831498.05.0.437092093505.issue17835@psf.upfronthosting.co.za> |
2013-04-24 19:24:58 | pitrou | link | issue17835 messages |
2013-04-24 19:24:57 | pitrou | create | |
|