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)
commit91b366611180f5ef42dc0d84f6fc8ca27e7d7d3e (patch)
treeab0f2154bbf239dc925ee5ac77ae0ef7abce276b /unix/tclUnixPipe.c
parent5bb4681028859916714fc5e28261013777ba212e (diff)
downloadtcl-91b366611180f5ef42dc0d84f6fc8ca27e7d7d3e.zip
tcl-91b366611180f5ef42dc0d84f6fc8ca27e7d7d3e.tar.gz
tcl-91b366611180f5ef42dc0d84f6fc8ca27e7d7d3e.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