From e40644c547171476e6a3c82a26de2be520bada29 Mon Sep 17 00:00:00 2001 From: andreas_kupries Date: Fri, 16 Jul 2004 17:38:27 +0000 Subject: * unix/tclUnixNotfy.c (NotifierThreadProc): Accepted Joe Mistachkin's patch for [Tcl SF Bug 990500], properly closing the notifier thread when its exits. --- ChangeLog | 6 ++++++ unix/tclUnixNotfy.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2944494..a52291f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-07-16 Andreas Kupries + + * unix/tclUnixNotfy.c (NotifierThreadProc): Accepted Joe + Mistachkin's patch for [Tcl SF Bug 990500], properly closing the + notifier thread when its exits. + 2004-07-15 Andreas Kupries * unix/tclUnixThrd.c (TclpFinalizeMutex): Accepted Joe diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index 6c0a6ca..6e3cf45 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.16 2004/06/22 13:09:00 vasiljevic Exp $ + * RCS: @(#) $Id: tclUnixNotfy.c,v 1.17 2004/07/16 17:38:28 andreas_kupries Exp $ */ #include "tclInt.h" @@ -1030,5 +1030,7 @@ NotifierThreadProc(clientData) triggerPipe = -1; Tcl_ConditionNotify(¬ifierCV); Tcl_MutexUnlock(¬ifierMutex); + + TclpThreadExit (0); } #endif -- cgit v0.12