diff options
author | das <das> | 2008-03-11 23:52:31 (GMT) |
---|---|---|
committer | das <das> | 2008-03-11 23:52:31 (GMT) |
commit | 618436dece16c8fdb56fcac180ee7c52b4d49a92 (patch) | |
tree | f8d0766b836d8f6ee91817ef2e27d58514a60b53 /macosx | |
parent | a6a59c74561b909d04eaac04469399836a527e8f (diff) | |
download | tcl-618436dece16c8fdb56fcac180ee7c52b4d49a92.zip tcl-618436dece16c8fdb56fcac180ee7c52b4d49a92.tar.gz tcl-618436dece16c8fdb56fcac180ee7c52b4d49a92.tar.bz2 |
* macosx/tclMacOSXNotify.c: avoid using CoreFoundation after fork() on
Darwin 9 even when TclpCreateProcess() uses vfork().
Diffstat (limited to 'macosx')
-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 2f9c62a..7fb8774 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.1.2.14 2007/08/11 03:12:07 das Exp $ + * RCS: @(#) $Id: tclMacOSXNotify.c,v 1.1.2.15 2008/03/11 23:52:35 das Exp $ */ #include "tclInt.h" @@ -289,9 +289,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) || \ @@ -301,9 +300,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 */ /* |