changeset 1864:6c587ae20117

* src/select.cxx (cyg_pselect): We need the oldmask under all conditions.
author asl
date Wed, 15 Dec 2004 14:56:09 +0000
parents 359e586bd44f
children a9d4e3db838b
files packages/io/fileio/current/ChangeLog packages/io/fileio/current/src/select.cxx
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/fileio/current/ChangeLog
+++ b/packages/io/fileio/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-15  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/select.cxx (cyg_pselect): We need the oldmask under all
+	conditions.
+
 2004-12-01  Alex Paulis and Cameron Taylor  <ctaylor@waverider.com>
 
 	* include/fileio.h: Changed si_thread to si_waitFlag
--- a/packages/io/fileio/current/src/select.cxx
+++ b/packages/io/fileio/current/src/select.cxx
@@ -156,9 +156,8 @@ cyg_pselect(int nfd, fd_set *in, fd_set 
     cyg_tick_count ticks;
     int mode_type[] = {CYG_FREAD, CYG_FWRITE, 0};
     cyg_uint32 wake_count;
-#ifdef CYGPKG_POSIX
     sigset_t oldmask;
-#endif
+
     Cyg_FlagValue myFlag = SELECT_WAIT_FLAG_GET ();
     int    maxFdIndex = __howmany(nfd, __NFDBITS); // size of fd sets