diff options
author | hobbs <hobbs> | 2004-12-07 00:07:54 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2004-12-07 00:07:54 (GMT) |
commit | b6d9631ab2fe1ab09cda202adac9bcde140bf2ee (patch) | |
tree | fc8527b97c34861a06ccfc192dfda0f9e53752b1 /unix | |
parent | 06e361219815be9e933877379d0753345e222792 (diff) | |
download | tcl-b6d9631ab2fe1ab09cda202adac9bcde140bf2ee.zip tcl-b6d9631ab2fe1ab09cda202adac9bcde140bf2ee.tar.gz tcl-b6d9631ab2fe1ab09cda202adac9bcde140bf2ee.tar.bz2 |
* unix/tclUnixNotfy.c (NotifierThreadProc): init numFdBits
[Bug 1079286]
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixNotfy.c | 10 |
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(¬ifierMutex); - + /* * Consume the next byte from the notifier pipe if the pipe was * readable. Note that there may be multiple bytes pending, but |