diff options
author | Joe Mistachkin <joe@mistachkin.com> | 2015-04-09 19:53:39 (GMT) |
---|---|---|
committer | Joe Mistachkin <joe@mistachkin.com> | 2015-04-09 19:53:39 (GMT) |
commit | 63f824a7e9b36198552d2b91b98ab9314fa8d2bd (patch) | |
tree | 64f6b3b62d1a2d29c62c2e5174d8710e379e4177 /unix/tclUnixNotfy.c | |
parent | 805cd597f906a608d30e585e9b6dd57c38f4eadc (diff) | |
download | tcl-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.c | 2 |
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(¬ifierMutex); + Tcl_MutexUnlockAndFinalize(¬ifierMutex); Tcl_InitNotifier(); } #endif /* HAVE_PTHREAD_ATFORK */ |