Commit bba35ede authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(sys_select): Check timer once even if input is pending.

parent 17ef0353
...@@ -2434,8 +2434,9 @@ sys_select (nfds, rfds, wfds, efds, timeout) ...@@ -2434,8 +2434,9 @@ sys_select (nfds, rfds, wfds, efds, timeout)
just read it and wait -- that's more efficient. */ just read it and wait -- that's more efficient. */
if (!timeout) if (!timeout)
{ {
while (! detect_input_pending ()) do
check_timer (&t); check_timer (&t); /* check timer even if some input is pending */
while (!detect_input_pending ());
} }
else else
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment