diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-10-03 15:54:21 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-10-03 15:57:00 +0200 |
commit | 48fed5c55b5183e6d44702dfdccd3b5325d8689c (patch) | |
tree | 8fdca659457e7cd3686e95d25e956e0b2c9575f8 /man | |
parent | ce04e2335ab80eda5674de3399aa16b5aea2657f (diff) |
pty: optimize read loop
As it turns out, I can actually send data to the pty faster than the
terminal can read. Therefore, make sure we read as much data as possible
but bail out early enough to not cause starvation.
Kernel TTY buffers are 4k, so reduce the overall buffer size, but read
more than once if possible (up to 8 times sounds reasonable).
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions