summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixNotfy.c
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2015-04-09 19:53:39 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2015-04-09 19:53:39 (GMT)
commit63f824a7e9b36198552d2b91b98ab9314fa8d2bd (patch)
tree64f6b3b62d1a2d29c62c2e5174d8710e379e4177 /unix/tclUnixNotfy.c
parent805cd597f906a608d30e585e9b6dd57c38f4eadc (diff)
downloadtcl-63f824a7e9b36198552d2b91b98ab9314fa8d2bd.zip
tcl-63f824a7e9b36198552d2b91b98ab9314fa8d2bd.tar.gz
tcl-63f824a7e9b36198552d2b91b98ab9314fa8d2bd.tar.bz2
Add new public Tcl C API to allow a mutex to be unlocked and then finalized atomically. Candidate fix for bug [57945b574a].
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r--unix/tclUnixNotfy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index b2bea45..aa32915 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -1376,7 +1376,7 @@ AtForkParent(void)
static void
AtForkChild(void)
{
- Tcl_MutexFinalize(&notifierMutex);
+ Tcl_MutexUnlockAndFinalize(&notifierMutex);
Tcl_InitNotifier();
}
#endif /* HAVE_PTHREAD_ATFORK */