]> git.scottworley.com Git - keystroke-timestamps/commitdiff
Allow multiple keystrokes at the same time v1.0.1
authorScott Worley <scottworley@scottworley.com>
Fri, 17 Sep 2021 22:53:14 +0000 (15:53 -0700)
committerScott Worley <scottworley@scottworley.com>
Fri, 17 Sep 2021 22:53:14 +0000 (15:53 -0700)
keystroke-timestamps.c

index 97936c6fca37741d8774271b0c25e032e562d2bc..31086788cf34bec292b0b53512e05315fd569eb1 100644 (file)
@@ -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++) {