diff lib/select.c @ 13424:4fc9e7002b1b

select: Correct timeout.
author René Berber <r.berber@computer.org>
date Tue, 15 Jun 2010 10:29:07 +0200 (2010-06-15)
parents 094f6cfdb5c3
children 69913822a0f7
line wrap: on
line diff
--- a/lib/select.c
+++ b/lib/select.c
@@ -246,7 +246,7 @@
     wait_timeout = INFINITE;
   else
     {
-      wait_timeout = timeout->tv_sec + timeout->tv_usec / 1000;
+      wait_timeout = timeout->tv_sec * 1000 + timeout->tv_usec / 1000;
 
       /* select is also used as a portable usleep.  */
       if (!rfds && !wfds && !xfds)