diff options
author | das <das> | 2008-03-11 22:24:17 (GMT) |
---|---|---|
committer | das <das> | 2008-03-11 22:24:17 (GMT) |
commit | 305fac9df80af99270e7e137c1ede3e47c31769e (patch) | |
tree | eb9bd9584370724c2a47db3dc8155958814b4512 /macosx/tclMacOSXNotify.c | |
parent | 4616e01478bbd4a5be900c2b189614fb039948de (diff) | |
download | tcl-305fac9df80af99270e7e137c1ede3e47c31769e.zip tcl-305fac9df80af99270e7e137c1ede3e47c31769e.tar.gz tcl-305fac9df80af99270e7e137c1ede3e47c31769e.tar.bz2 |
* macosx/tclMacOSXNotify.c: avoid using CoreFoundation after fork() on
Darwin 9 even when TclpCreateProcess() uses vfork().
Diffstat (limited to 'macosx/tclMacOSXNotify.c')
-rw-r--r-- | macosx/tclMacOSXNotify.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/macosx/tclMacOSXNotify.c b/macosx/tclMacOSXNotify.c index 8f7adb2..0cd8eac 100644 --- a/macosx/tclMacOSXNotify.c +++ b/macosx/tclMacOSXNotify.c @@ -7,12 +7,12 @@ * * Copyright (c) 1995-1997 Sun Microsystems, Inc. * Copyright 2001, Apple Computer, Inc. - * Copyright (c) 2005-2007 Daniel A. Steffen <das@users.sourceforge.net> + * Copyright (c) 2005-2008 Daniel A. Steffen <das@users.sourceforge.net> * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclMacOSXNotify.c,v 1.17 2007/12/13 15:26:03 dgp Exp $ + * RCS: @(#) $Id: tclMacOSXNotify.c,v 1.18 2008/03/11 22:24:17 das Exp $ */ #include "tclInt.h" @@ -319,9 +319,8 @@ static void AtForkChild(void); extern int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) WEAK_IMPORT_ATTRIBUTE; #endif /* HAVE_WEAK_IMPORT */ -#ifdef __LP64__ /* - * On 64bit Darwin 9 and later, it is not possible to call CoreFoundation after + * On Darwin 9 and later, it is not possible to call CoreFoundation after * a fork. */ #if !defined(MAC_OS_X_VERSION_MIN_REQUIRED) || \ @@ -331,9 +330,6 @@ MODULE_SCOPE long tclMacOSXDarwinRelease; #else /* MAC_OS_X_VERSION_MIN_REQUIRED */ #define noCFafterFork 1 #endif /* MAC_OS_X_VERSION_MIN_REQUIRED */ -#else /* __LP64__ */ -#define noCFafterFork 0 -#endif /* __LP64__ */ #endif /* HAVE_PTHREAD_ATFORK */ /* |