diff packages/io/fileio/current/src/select.cxx @ 1416:786e2e6e3c3d

* src/select.cxx (pselect): Fixed the pselect() call to correctly handle NULL timeout arguments. The previous implementation would cause a random timeout value to be used.
author asl
date Fri, 05 Dec 2003 09:04:14 +0000
parents 064536ee7f68
children 244c4e8297c2
line wrap: on
line diff
--- a/packages/io/fileio/current/src/select.cxx
+++ b/packages/io/fileio/current/src/select.cxx
@@ -331,7 +331,7 @@ pselect(int nfd, fd_set *in, fd_set *out
             tv.tv_usec = ts->tv_nsec/1000;
         }
 
-	return cyg_pselect(nfd, in, out, ex, &tv, sigmask);
+	return cyg_pselect(nfd, in, out, ex, ts ? &tv : NULL, sigmask);
 }
 
 #endif