summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das@noemail.net>2003-02-21 14:15:58 (GMT)
committerdas <das@noemail.net>2003-02-21 14:15:58 (GMT)
commitf17e32c2fb7d1e96b188105b14b5bdd97b7916cb (patch)
treeab0f2154bbf239dc925ee5ac77ae0ef7abce276b
parent2baef404bb181b3cf9416972f3631279af921345 (diff)
downloadtcl-f17e32c2fb7d1e96b188105b14b5bdd97b7916cb.zip
tcl-f17e32c2fb7d1e96b188105b14b5bdd97b7916cb.tar.gz
tcl-f17e32c2fb7d1e96b188105b14b5bdd97b7916cb.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). FossilOrigin-Name: deee64d32d06a86a6d8fcc71f4a34123fdb7c73e
-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