aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 5bdeba25958..55b9ee1ec0e 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -1090,7 +1090,8 @@ sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds,
1090 HANDLE wait_hnd[MAXDESC + MAX_CHILDREN]; 1090 HANDLE wait_hnd[MAXDESC + MAX_CHILDREN];
1091 int fdindex[MAXDESC]; /* mapping from wait handles back to descriptors */ 1091 int fdindex[MAXDESC]; /* mapping from wait handles back to descriptors */
1092 1092
1093 timeout_ms = timeout ? (timeout->tv_sec * 1000 + timeout->tv_usec / 1000) : INFINITE; 1093 timeout_ms =
1094 timeout ? (timeout->tv_sec * 1000 + timeout->tv_nsec / 1000000) : INFINITE;
1094 1095
1095 /* If the descriptor sets are NULL but timeout isn't, then just Sleep. */ 1096 /* If the descriptor sets are NULL but timeout isn't, then just Sleep. */
1096 if (rfds == NULL && wfds == NULL && efds == NULL && timeout != NULL) 1097 if (rfds == NULL && wfds == NULL && efds == NULL && timeout != NULL)