# HG changeset patch # User asl # Date 1070615054 0 # Node ID 786e2e6e3c3de804201140fe2560dd52666423b1 # Parent 7ce0661f305ccd1526a55801a82c8e6a335a3527 * 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. diff --git a/packages/io/fileio/current/ChangeLog b/packages/io/fileio/current/ChangeLog --- a/packages/io/fileio/current/ChangeLog +++ b/packages/io/fileio/current/ChangeLog @@ -1,3 +1,9 @@ +2003-12-03 Dan Jakubiec + + * 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 * include/fileio.h, include/sockio.h, src/dir.cxx, src/fd.cxx, diff --git a/packages/io/fileio/current/src/select.cxx b/packages/io/fileio/current/src/select.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