summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPipe.c
diff options
context:
space:
mode:
authordas <das>2003-02-21 14:15:58 (GMT)
committerdas <das>2003-02-21 14:15:58 (GMT)
commitb10d38388ab71647664bbec6525b1b0d9a0b92c2 (patch)
treeab0f2154bbf239dc925ee5ac77ae0ef7abce276b /unix/tclUnixPipe.c
parenta06d29e8f324739ff97c0ea66994ea5c0d2595a8 (diff)
downloadtcl-b10d38388ab71647664bbec6525b1b0d9a0b92c2.zip
tcl-b10d38388ab71647664bbec6525b1b0d9a0b92c2.tar.gz
tcl-b10d38388ab71647664bbec6525b1b0d9a0b92c2.tar.bz2
* 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).
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r--unix/tclUnixPipe.c6
1 files changed, 5 insertions, 1 deletions
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