2 ms·
please demonstrate that consumer. on linux there is no way to do this without your consumer being a kernel driver that actually [purposefully accepts one byte
by dmitrygr 9y ago
please demonstrate that consumer.
on linux there is no way to do this without your consumer being a kernel driver that actually [purposefully accepts one byte at a time. all file io and pipes have basically no way to accept one byte only (except EOF)
- blibble 9y agoyou wouldn't see it on Linux as pipes are implemented using complete pages (always powers of 2), but there's probably some OS out there with a different implementation where you can set the buffer size to be an odd number, and then you'd see the bug with plain simple cat I didn't say you'd likely see it in practice :)