aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-05 19:24:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-05 19:24:46 +0000
commit2560e83c541837ed2ba66b1de88f2e4456a5f8d5 (patch)
tree65fad1fdf57b150357d55a191dbb6a317a4dcd83
parentterm: language (diff)
term: reduce max number of iterations when trying to drain client
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 35ecb845..ad8ba085 100644
--- a/terminal.c
+++ b/terminal.c
@@ -153,7 +153,7 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
uint8_t buf[24 * 1024];
ssize_t count = sizeof(buf);
- const size_t max_iterations = 1024;
+ const size_t max_iterations = 10;
for (size_t i = 0; i < max_iterations && pollin && count == sizeof(buf); i++) {
assert(pollin);