summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-08-05 22:00:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-08-05 22:00:58 (GMT)
commitaa01137e0e936cc97ab7ba3c80ab39b7772938f0 (patch)
tree56e6c4e66ddff63d098281e220a414f4d18ffc04 /unix/tclUnixTest.c
parentc5ef7f0df97b7cc9452e449957462cd0dbbe373c (diff)
parent4fa8d0b58071c8c666a320ef21813e12303c3564 (diff)
downloadtcl-aa01137e0e936cc97ab7ba3c80ab39b7772938f0.zip
tcl-aa01137e0e936cc97ab7ba3c80ab39b7772938f0.tar.gz
tcl-aa01137e0e936cc97ab7ba3c80ab39b7772938f0.tar.bz2
Mark unixforkevent-1.1 nonPortable, until proven on more platforms.
Make sure that when testing for pthread_atfork the thread library is taken into account.
Diffstat (limited to 'unix/tclUnixTest.c')
-rw-r--r--unix/tclUnixTest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixTest.c b/unix/tclUnixTest.c
index f64a29e..b3e07a4 100644
--- a/unix/tclUnixTest.c
+++ b/unix/tclUnixTest.c
@@ -566,8 +566,8 @@ TestforkObjCmd(
"Cannot fork", NULL);
return TCL_ERROR;
}
-#ifndef HAVE_PTHREAD_ATFORK
- /* Only needed when pthread_atfork is not present. */
+#if !defined(HAVE_PTHREAD_ATFORK) || defined(MAC_OSX_TCL)
+ /* Only needed when pthread_atfork is not present or on OSX. */
if (pid==0) {
Tcl_InitNotifier();
}