summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-02 09:02:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-02 09:02:53 (GMT)
commit3274fc31fdb95d7c58b22b554e4418090ea8f0b0 (patch)
tree635acee6a7924d49d3eff0316878fdc95d55a8c7 /unix/tclUnixNotfy.c
parentd798be3eaf55726dfd1259cb8f285cecff5ad39c (diff)
parenta18e29f96b7b7a0699ed4d5df433b0b0660341e3 (diff)
downloadtcl-3274fc31fdb95d7c58b22b554e4418090ea8f0b0.zip
tcl-3274fc31fdb95d7c58b22b554e4418090ea8f0b0.tar.gz
tcl-3274fc31fdb95d7c58b22b554e4418090ea8f0b0.tar.bz2
Merge trunk.
Gustaf's latest and greatest fix.
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 693eeac..dc6c6fd 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -962,7 +962,7 @@ Tcl_WaitForEvent(
}
#endif /* __CYGWIN */
- pthread_mutex_lock(&notifierInitMutex);
+ pthread_mutex_lock(&notifierMutex);
if (timePtr != NULL && timePtr->sec == 0 && (timePtr->usec == 0
#if defined(__APPLE__) && defined(__LP64__)
@@ -1146,7 +1146,7 @@ Tcl_WaitForEvent(
filePtr->readyMask = mask;
}
#ifdef TCL_THREADS
- pthread_mutex_unlock(&notifierInitMutex);
+ pthread_mutex_unlock(&notifierMutex);
#endif /* TCL_THREADS */
return 0;
}