aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-11-27 20:05:44 +0000
committerRichard M. Stallman1995-11-27 20:05:44 +0000
commitbba35edee6ad9c4d193eb1bfc4f64ee14d89b5ac (patch)
tree4da3cb6dcdcf92d74178175db1da1311972dd1c9
parent17ef035379818c495077d6a42a87f56754523f49 (diff)
downloademacs-bba35edee6ad9c4d193eb1bfc4f64ee14d89b5ac.tar.gz
emacs-bba35edee6ad9c4d193eb1bfc4f64ee14d89b5ac.zip
(sys_select): Check timer once even if input is pending.
-rw-r--r--src/msdos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/msdos.c b/src/msdos.c
index e3426b05b38..a05149eea33 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -2434,8 +2434,9 @@ sys_select (nfds, rfds, wfds, efds, timeout)
2434 just read it and wait -- that's more efficient. */ 2434 just read it and wait -- that's more efficient. */
2435 if (!timeout) 2435 if (!timeout)
2436 { 2436 {
2437 while (! detect_input_pending ()) 2437 do
2438 check_timer (&t); 2438 check_timer (&t); /* check timer even if some input is pending */
2439 while (!detect_input_pending ());
2439 } 2440 }
2440 else 2441 else
2441 { 2442 {