From: Richard M. Stallman Date: Mon, 27 Nov 1995 20:05:44 +0000 (+0000) Subject: (sys_select): Check timer once even if input is pending. X-Git-Tag: emacs-19.34~2203 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bba35edee6ad9c4d193eb1bfc4f64ee14d89b5ac;p=emacs.git (sys_select): Check timer once even if input is pending. --- 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) just read it and wait -- that's more efficient. */ if (!timeout) { - while (! detect_input_pending ()) - check_timer (&t); + do + check_timer (&t); /* check timer even if some input is pending */ + while (!detect_input_pending ()); } else {