summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2006-11-27 20:16:02 (GMT)
committerKevin B Kenny <kennykb@acm.org>2006-11-27 20:16:02 (GMT)
commit6423256f6922e81b5acb9bf0ccd2f538d379ac56 (patch)
tree7ecf464ae3646a2382ad3ca291c8397797a4a018 /unix/tclUnixChan.c
parentd54c78640c3cfad9fd7d3771a607f28c2dc3219e (diff)
downloadtcl-6423256f6922e81b5acb9bf0ccd2f538d379ac56.zip
tcl-6423256f6922e81b5acb9bf0ccd2f538d379ac56.tar.gz
tcl-6423256f6922e81b5acb9bf0ccd2f538d379ac56.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.c5
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