summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-07-25 15:57:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-07-25 15:57:02 (GMT)
commit004d2e654ffa9506699941289039edae89fcb620 (patch)
tree3818f81aa8ca532e614ccf31af9db7ef9ee0de85 /unix/tclUnixPipe.c
parent8733687efc5d3b8d2dd1114b0f5af35c019e9093 (diff)
parent323f750af89409054523043d07af9a3aaad0dfa2 (diff)
downloadtcl-004d2e654ffa9506699941289039edae89fcb620.zip
tcl-004d2e654ffa9506699941289039edae89fcb620.tar.gz
tcl-004d2e654ffa9506699941289039edae89fcb620.tar.bz2
Close fork. Prefer vfork over posix_spawnp
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r--unix/tclUnixPipe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c
index b85ffe0..96ca095 100644
--- a/unix/tclUnixPipe.c
+++ b/unix/tclUnixPipe.c
@@ -15,7 +15,8 @@
#ifdef HAVE_POSIX_SPAWNP
# if defined(HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2) \
- && defined(HAVE_POSIX_SPAWNATTR_SETFLAGS)
+ && defined(HAVE_POSIX_SPAWNATTR_SETFLAGS) \
+ && !defined(HAVE_VFORK)
# include <unistd.h>
# include <spawn.h>
# else