From ea89df2b76811505239b508a570ac9c0ea591038 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 9 Nov 2012 18:00:33 +0100 Subject: Use vfork() instead of fork() if available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hopefully this reduces the chance of hitting ‘unable to fork: Cannot allocate memory’ errors. vfork() is used for everything except starting builders. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7333e03c0..0eb7d7632 100644 --- a/configure.ac +++ b/configure.ac @@ -115,6 +115,10 @@ AC_CHECK_HEADERS([sys/mount.h], [], [], ]) +# Check for vfork. +AC_FUNC_FORK() + + # Check for lutimes, optionally used for changing the mtime of # symlinks. AC_CHECK_FUNCS([lutimes]) -- cgit v1.2.3