diff options
author | das <das> | 2006-05-27 05:22:57 (GMT) |
---|---|---|
committer | das <das> | 2006-05-27 05:22:57 (GMT) |
commit | e16b80b8a8a7d7aa69b1e71ed58a73f220641814 (patch) | |
tree | 72d3182ed41bcde90b163221064968579be2632f /unix/tclConfig.h.in | |
parent | 3596b0e33f208511096398034c60263f6bce862a (diff) | |
download | tcl-e16b80b8a8a7d7aa69b1e71ed58a73f220641814.zip tcl-e16b80b8a8a7d7aa69b1e71ed58a73f220641814.tar.gz tcl-e16b80b8a8a7d7aa69b1e71ed58a73f220641814.tar.bz2 |
* macosx/tclMacOSXNotify.c: implemented pthread_atfork() handler that
* unix/tcl.m4 (Darwin): recreates CoreFoundation state and notifier
thread in the child after a fork(). Note that pthread_atfork() is
available starting with Tiger only. Because vfork() is used by the core
on Darwin, [exec]/[open] are not affected by this fix, only extensions
or embedders that call fork() directly (such as TclX). However, this
only makes fork() safe from corefoundation tcl with --disable-threads;
as on all platforms, forked children may deadlock in threaded tcl due to
the potential for stale locked mutexes in the child. [Patch 923072]
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
Diffstat (limited to 'unix/tclConfig.h.in')
-rw-r--r-- | unix/tclConfig.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tclConfig.h.in b/unix/tclConfig.h.in index 348dedb..2e3d21f 100644 --- a/unix/tclConfig.h.in +++ b/unix/tclConfig.h.in @@ -76,6 +76,9 @@ /* Define to 1 if you have the `OSSpinLockLock' function. */ #undef HAVE_OSSPINLOCKLOCK +/* Define to 1 if you have the `pthread_atfork' function. */ +#undef HAVE_PTHREAD_ATFORK + /* Do we want a BSD-like thread-attribute interface? */ #undef HAVE_PTHREAD_ATTR_GET_NP |