summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-06-18 19:58:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-06-18 19:58:45 (GMT)
commit0ea82c2d43e73fef5481d22ae75c9f71975eb715 (patch)
treef7f3ce61553efb1eb9de900ca3c17efb92ee670e /unix/tclUnixNotfy.c
parentd7b8af55e7a45674c4feb7b912bf4c7ef214855e (diff)
parent7679c0513ced1ce6009d339d8e43afdc3f0ad87a (diff)
downloadtcl-0ea82c2d43e73fef5481d22ae75c9f71975eb715.zip
tcl-0ea82c2d43e73fef5481d22ae75c9f71975eb715.tar.gz
tcl-0ea82c2d43e73fef5481d22ae75c9f71975eb715.tar.bz2
merge novem
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r--unix/tclUnixNotfy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index 043735a..2322f43 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 */