summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-12-12 02:27:19 (GMT)
committerhobbs <hobbs>1999-12-12 02:27:19 (GMT)
commitb183ce5e032c7c0f144f8f6ba001471e3d6ff802 (patch)
tree09981004145e8084f9d6e139d6691eb554f27fe7 /unix/tcl.m4
parentcd9655fd919cf88d1b2f8ea9a542de1ba6e5649a (diff)
downloadtcl-b183ce5e032c7c0f144f8f6ba001471e3d6ff802.zip
tcl-b183ce5e032c7c0f144f8f6ba001471e3d6ff802.tar.gz
tcl-b183ce5e032c7c0f144f8f6ba001471e3d6ff802.tar.bz2
* unix/configure.in:
* unix/tcl.m4: * unix/tclUnixPipe.c: removed checking for compatible vfork function and use of the vfork function. Modern VM systems rarely suffer any performance degradation when fork is used, and it solves multiple problems with vfork. Users that still want vfork and add -Dfork=vfork to the compile flags. [Bug: 942 2228 1312]
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m462
1 files changed, 0 insertions, 62 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index a347af6..0b8fdda 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1445,68 +1445,6 @@ AC_DEFUN(SC_BLOCKING_STYLE, [
])
#--------------------------------------------------------------------
-# SC_HAVE_VFORK
-#
-# Check to see whether the system provides a vfork kernel call.
-# If not, then use fork instead. Also, check for a problem with
-# vforks and signals that can cause core dumps if a vforked child
-# resets a signal handler. If the problem exists, then use fork
-# instead of vfork.
-#
-# Arguments:
-# none
-#
-# Results:
-#
-# Defines some of the following vars:
-# vfork (=fork)
-#
-#--------------------------------------------------------------------
-
-AC_DEFUN(SC_HAVE_VFORK, [
- AC_TYPE_SIGNAL()
- AC_CHECK_FUNC(vfork, tcl_ok=1, tcl_ok=0)
- if test "$tcl_ok" = 1; then
- AC_MSG_CHECKING([vfork/signal bug]);
- AC_TRY_RUN([
-#include <stdio.h>
-#include <signal.h>
-#include <sys/wait.h>
-int gotSignal = 0;
-sigProc(sig)
- int sig;
-{
- gotSignal = 1;
-}
-main()
-{
- int pid, sts;
- (void) signal(SIGCHLD, sigProc);
- pid = vfork();
- if (pid < 0) {
- exit(1);
- } else if (pid == 0) {
- (void) signal(SIGCHLD, SIG_DFL);
- _exit(0);
- } else {
- (void) wait(&sts);
- }
- exit((gotSignal) ? 0 : 1);
-}], tcl_ok=1, tcl_ok=0, tcl_ok=0)
-
- if test "$tcl_ok" = 1; then
- AC_MSG_RESULT(ok)
- else
- AC_MSG_RESULT([buggy, using fork instead])
- fi
- fi
- rm -f core
- if test "$tcl_ok" = 0; then
- AC_DEFINE(vfork, fork)
- fi
-])
-
-#--------------------------------------------------------------------
# SC_TIME_HANLDER
#
# Checks how the system deals with time.h, what time structures