summaryrefslogtreecommitdiffstats
path: root/unix
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)
commit8dd7c4f2d2a3ac59420c49cb816bf5eb237ea119 (patch)
tree64f6b3b62d1a2d29c62c2e5174d8710e379e4177 /unix
parent651d304f426a8ed04bc3e743e922ff46ad5b9aa1 (diff)
downloadtcl-8dd7c4f2d2a3ac59420c49cb816bf5eb237ea119.zip
tcl-8dd7c4f2d2a3ac59420c49cb816bf5eb237ea119.tar.gz
tcl-8dd7c4f2d2a3ac59420c49cb816bf5eb237ea119.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')
-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 */