summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-07 14:23:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-07 14:23:00 (GMT)
commit161caf6289109bf3b080433e64eb6597187e921a (patch)
treebcf38ee5607b90b19574e0769147c00facfc98fb /unix
parent6a229b9d227ed7356d5a8e0ba52b84a213ec7563 (diff)
parent4e6df409a8a45c4356447e304a5300a6324c3c09 (diff)
downloadtcl-161caf6289109bf3b080433e64eb6597187e921a.zip
tcl-161caf6289109bf3b080433e64eb6597187e921a.tar.gz
tcl-161caf6289109bf3b080433e64eb6597187e921a.tar.bz2
Fix for [d4e464ae48]: tcl 8.5.15/8.6.1 breaks python make check on darwin
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixNotfy.c8
-rw-r--r--unix/tclUnixTest.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index ec721ca..f41ef68 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -202,7 +202,7 @@ static Tcl_ThreadId notifierThread;
#ifdef TCL_THREADS
static void NotifierThreadProc(ClientData clientData);
-#ifdef HAVE_PTHREAD_ATFORK
+#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__)
static int atForkInit = 0;
static void AtForkPrepare(void);
static void AtForkParent(void);
@@ -282,7 +282,7 @@ Tcl_InitNotifier(void)
*/
Tcl_MutexLock(&notifierMutex);
-#ifdef HAVE_PTHREAD_ATFORK
+#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__)
/*
* Install pthread_atfork handlers to reinitialize the notifier in the
* child of a fork.
@@ -296,7 +296,7 @@ Tcl_InitNotifier(void)
}
atForkInit = 1;
}
-#endif
+#endif /* HAVE_PTHREAD_ATFORK */
/*
* Check if my process id changed, e.g. I was forked
* In this case, restart the notifier thread and close the
@@ -1273,7 +1273,7 @@ NotifierThreadProc(
TclpThreadExit (0);
}
-#ifdef HAVE_PTHREAD_ATFORK
+#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__)
/*
*----------------------------------------------------------------------
*
diff --git a/unix/tclUnixTest.c b/unix/tclUnixTest.c
index d2b729d..bb16f3b 100644
--- a/unix/tclUnixTest.c
+++ b/unix/tclUnixTest.c
@@ -574,8 +574,8 @@ TestforkObjCmd(
"Cannot fork", NULL);
return TCL_ERROR;
}
-#if !defined(HAVE_PTHREAD_ATFORK) || defined(MAC_OSX_TCL)
- /* Only needed when pthread_atfork is not present or on OSX. */
+#if !defined(HAVE_PTHREAD_ATFORK)
+ /* Only needed when pthread_atfork is not present. */
if (pid==0) {
Tcl_InitNotifier();
}