changeset 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 7ce0661f305c
children 14c3e340717c
files packages/io/fileio/current/ChangeLog packages/io/fileio/current/src/select.cxx
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/fileio/current/ChangeLog
+++ b/packages/io/fileio/current/ChangeLog
@@ -1,3 +1,9 @@
+2003-12-03  Dan Jakubiec  <djakubiec@yahoo.com>
+
+	* 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.
+
 2003-11-28  David Woodhouse  <dwmw2@redhat.com>
 
 	* include/fileio.h, include/sockio.h, src/dir.cxx, src/fd.cxx,
--- 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