From b10d38388ab71647664bbec6525b1b0d9a0b92c2 Mon Sep 17 00:00:00 2001 From: das Date: Fri, 21 Feb 2003 14:15:58 +0000 Subject: * unix/tclUnixPipe.c: (macosx) use vfork() instead of fork() to create new processes, as recommended by to Apple (vfork can be up to 100 times faster thank fork on macosx). --- unix/tclUnixPipe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c index 4c17c17..4ceb16f 100644 --- a/unix/tclUnixPipe.c +++ b/unix/tclUnixPipe.c @@ -10,12 +10,16 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixPipe.c,v 1.22 2002/06/28 09:56:54 dkf Exp $ + * RCS: @(#) $Id: tclUnixPipe.c,v 1.23 2003/02/21 14:15:58 das Exp $ */ #include "tclInt.h" #include "tclPort.h" +#ifdef USE_VFORK +#define fork vfork +#endif + /* * The following macros convert between TclFile's and fd's. The conversion * simple involves shifting fd's up by one to ensure that no valid fd is ever -- cgit v0.12