summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-07-31 08:39:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-07-31 08:39:50 (GMT)
commit27be6e4e9ada6489a2bb9de775cab72378825b2b (patch)
treec2e372443d6b96e908a4db00bc22d4bd54bdf312 /unix
parent1990c76e8d05fcf48cccabb5d2f1a49c3c99ecd1 (diff)
parentf10bee2648e7e87c576a1afe761e8525255d3a7a (diff)
downloadtcl-27be6e4e9ada6489a2bb9de775cab72378825b2b.zip
tcl-27be6e4e9ada6489a2bb9de775cab72378825b2b.tar.gz
tcl-27be6e4e9ada6489a2bb9de775cab72378825b2b.tar.bz2
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixNotfy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index b234667..b2bea45 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -311,6 +311,7 @@ Tcl_InitNotifier(void)
* pipe to the original notifier thread
*/
if (notifierCount > 0 && processIDInitialized != getpid()) {
+ Tcl_ConditionFinalize(&notifierCV);
notifierCount = 0;
processIDInitialized = 0;
close(triggerPipe);
@@ -1375,8 +1376,7 @@ AtForkParent(void)
static void
AtForkChild(void)
{
- notifierMutex = NULL;
- notifierCV = NULL;
+ Tcl_MutexFinalize(&notifierMutex);
Tcl_InitNotifier();
}
#endif /* HAVE_PTHREAD_ATFORK */