From 3e0d7d46765815f9918fc4137dca50cb74dd6af8 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 17 Sep 2021 15:53:14 -0700 Subject: [PATCH 1/1] Allow multiple keystrokes at the same time --- keystroke-timestamps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystroke-timestamps.c b/keystroke-timestamps.c index 97936c6..3108678 100644 --- a/keystroke-timestamps.c +++ b/keystroke-timestamps.c @@ -79,7 +79,7 @@ int main (int argc, char **argv) struct input_event i; while (1) { fd_set ready_inputs = all_inputs; - if (select(maxfd+1, &ready_inputs, NULL, NULL, NULL) != 1) { + if (select(maxfd+1, &ready_inputs, NULL, NULL, NULL) < 1) { err(EX_IOERR, "select"); } for (int fd=0; fd <= maxfd; fd++) { -- 2.51.2