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 | 80f2aec7ad3e65650e909b9fea44cc35d387fdb2 (patch) | |
| tree | 64f6b3b62d1a2d29c62c2e5174d8710e379e4177 /unix/tclUnixNotfy.c | |
| parent | 4ba85a2ce24d086e59e3d2c659ce7aa3cbf4a506 (diff) | |
| download | tcl-80f2aec7ad3e65650e909b9fea44cc35d387fdb2.zip tcl-80f2aec7ad3e65650e909b9fea44cc35d387fdb2.tar.gz tcl-80f2aec7ad3e65650e909b9fea44cc35d387fdb2.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 */ |
