From 7d702756ad10dff096d33ebfffefca78f2a72f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 30 Jul 2019 18:07:44 +0200 Subject: [PATCH] main: pty buffers appear to be ~20KB on modern linux kernels --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index cc2fd054..3228e8f8 100644 --- a/main.c +++ b/main.c @@ -738,7 +738,7 @@ main(int argc, char *const *argv) } if (fds[1].revents & POLLIN) { - uint8_t data[8192]; + uint8_t data[24 * 1024]; ssize_t count = read(term.ptmx, data, sizeof(data)); if (count < 0) { if (errno != EAGAIN)