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 | 8dd7c4f2d2a3ac59420c49cb816bf5eb237ea119 (patch) | |
tree | 64f6b3b62d1a2d29c62c2e5174d8710e379e4177 /unix/tclUnixNotfy.c | |
parent | 651d304f426a8ed04bc3e743e922ff46ad5b9aa1 (diff) | |
download | tcl-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/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 */ |