summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-12-07 00:07:54 (GMT)
committerhobbs <hobbs>2004-12-07 00:07:54 (GMT)
commit924fb48b4b8a438e925a6c13abbce2953e6dc75d (patch)
treefc8527b97c34861a06ccfc192dfda0f9e53752b1 /unix
parent0a344ce3259553633532950e77bc9037e6aa605e (diff)
downloadtcl-924fb48b4b8a438e925a6c13abbce2953e6dc75d.zip
tcl-924fb48b4b8a438e925a6c13abbce2953e6dc75d.tar.gz
tcl-924fb48b4b8a438e925a6c13abbce2953e6dc75d.tar.bz2
* unix/tclUnixNotfy.c (NotifierThreadProc): init numFdBitscore_8_4_9
[Bug 1079286]
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixNotfy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index 385e4d7..fc15eaf 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixNotfy.c,v 1.11.2.6 2004/11/24 20:19:22 kennykb Exp $
+ * RCS: @(#) $Id: tclUnixNotfy.c,v 1.11.2.7 2004/12/07 00:07:54 hobbs Exp $
*/
#include "tclInt.h"
@@ -864,7 +864,7 @@ NotifierThreadProc(clientData)
fd_set writableMask;
fd_set exceptionalMask;
int fds[2];
- int i, status, numFdBits, receivePipe;
+ int i, status, numFdBits = 0, receivePipe;
long found;
struct timeval poll = {0., 0.}, *timePtr;
char buf[2];
@@ -996,7 +996,7 @@ NotifierThreadProc(clientData)
found = 1;
}
}
-
+
if (found || (tsdPtr->pollState & POLL_DONE)) {
tsdPtr->eventReady = 1;
if (tsdPtr->onList) {
@@ -1006,7 +1006,7 @@ NotifierThreadProc(clientData)
* continuously spining on select until the other
* threads runs and services the file event.
*/
-
+
if (tsdPtr->prevPtr) {
tsdPtr->prevPtr->nextPtr = tsdPtr->nextPtr;
} else {
@@ -1023,7 +1023,7 @@ NotifierThreadProc(clientData)
}
}
Tcl_MutexUnlock(&notifierMutex);
-
+
/*
* Consume the next byte from the notifier pipe if the pipe was
* readable. Note that there may be multiple bytes pending, but