diff options
author | Kevin B Kenny <kennykb@acm.org> | 2006-11-27 20:16:02 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2006-11-27 20:16:02 (GMT) |
commit | 560ef2959a601d2e63d900821bc0946392be40c6 (patch) | |
tree | 7ecf464ae3646a2382ad3ca291c8397797a4a018 /unix/tclUnixChan.c | |
parent | d8d2992ff2e190e6b68d55ae255aaea89183265b (diff) | |
download | tcl-560ef2959a601d2e63d900821bc0946392be40c6.zip tcl-560ef2959a601d2e63d900821bc0946392be40c6.tar.gz tcl-560ef2959a601d2e63d900821bc0946392be40c6.tar.bz2 |
* unix/tclUnixChan.c (TclUnixWaitForFile):
* tests/event.test (event-14.*): Corrected a bug where
TclUnixWaitForFile would present select() with the wrong mask
on an LP64 machine if a fd number exceeds 32. Thanks to
Jean-Luc Fontaine for reporting and diagnosing [Bug 1602208].
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r-- | unix/tclUnixChan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index b737b09..2390303 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixChan.c,v 1.73 2006/11/13 08:23:11 das Exp $ + * RCS: @(#) $Id: tclUnixChan.c,v 1.74 2006/11/27 20:16:03 kennykb Exp $ */ #include "tclInt.h" /* Internal definitions for Tcl. */ @@ -3149,7 +3149,8 @@ TclUnixWaitForFile( { Tcl_Time abortTime = {0, 0}, now; /* silence gcc 4 warning */ struct timeval blockTime, *timeoutPtr; - int index, bit, numFound, result = 0; + int index, numFound, result = 0; + fd_mask bit; fd_mask readyMasks[3*MASK_SIZE]; fd_mask *maskp[3]; /* This array reflects the readable/writable * conditions that were found to exist by the |