summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index affd373655b..dd21b63cfdd 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3357,7 +3357,7 @@ read_avail_input (expected)
#endif
/* Retry the read if it was interrupted. */
}
- while (nread < 0 && (errno == EAGAIN
+ while (nread < 0 && (errno == EINTR
#ifdef EFAULT
|| errno == EFAULT
#endif