From 924fb48b4b8a438e925a6c13abbce2953e6dc75d Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 7 Dec 2004 00:07:54 +0000 Subject: * unix/tclUnixNotfy.c (NotifierThreadProc): init numFdBits [Bug 1079286] --- ChangeLog | 7 ++++++- unix/tclUnixNotfy.c | 10 +++++----- 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 +2004-12-06 Jeff Hobbs *** 8.4.9 TAGGED FOR RELEASE *** + * unix/tclUnixNotfy.c (NotifierThreadProc): init numFdBits + [Bug 1079286] + +2004-12-02 Jeff Hobbs + * changes: updated for 8.4.9 release 2004-12-02 Vince Darley 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(¬ifierMutex); - + /* * Consume the next byte from the notifier pipe if the pipe was * readable. Note that there may be multiple bytes pending, but -- cgit v0.12