summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-04-19 05:56:20 +0000
committerKarl Heuer <kwzh@gnu.org>1994-04-19 05:56:20 +0000
commita14cad8c6022bb59d7815d40e66b1c83479c24a4 (patch)
tree382ca844818ebafe25b126640d115389d8ea7e4a
parent9134775b88c462d5fbf4c0c33a1af806f562343c (diff)
downloademacs-a14cad8c6022bb59d7815d40e66b1c83479c24a4.tar.gz
emacs-a14cad8c6022bb59d7815d40e66b1c83479c24a4.tar.bz2
emacs-a14cad8c6022bb59d7815d40e66b1c83479c24a4.zip
(read_avail_input): Test EINTR, not EAGAIN.
-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