summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-12-07 00:07:54 (GMT)
committerhobbs <hobbs>2004-12-07 00:07:54 (GMT)
commitb6d9631ab2fe1ab09cda202adac9bcde140bf2ee (patch)
treefc8527b97c34861a06ccfc192dfda0f9e53752b1
parent06e361219815be9e933877379d0753345e222792 (diff)
downloadtcl-b6d9631ab2fe1ab09cda202adac9bcde140bf2ee.zip
tcl-b6d9631ab2fe1ab09cda202adac9bcde140bf2ee.tar.gz
tcl-b6d9631ab2fe1ab09cda202adac9bcde140bf2ee.tar.bz2
* unix/tclUnixNotfy.c (NotifierThreadProc): init numFdBits
[Bug 1079286]
-rw-r--r--ChangeLog7
-rw-r--r--unix/tclUnixNotfy.c10
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d09d91..d8bf2d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,12 @@
-2004-12-02 Jeff Hobbs <jeffh@ActiveState.com>
+2004-12-06 Jeff Hobbs <jeffh@ActiveState.com>
*** 8.4.9 TAGGED FOR RELEASE ***
+ * unix/tclUnixNotfy.c (NotifierThreadProc): init numFdBits
+ [Bug 1079286]
+
+2004-12-02 Jeff Hobbs <jeffh@ActiveState.com>
+
* changes: updated for 8.4.9 release
2004-12-02 Vince Darley <vincentdarley@users.sourceforge.net>
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