From 9bb7a8ccddf15537da6af71e594322f2519350f7 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 25 Apr 2009 09:21:49 +0000 Subject: * configure.in (ac_cv_func_daemon): use daemon(3) only on *BSD. * process.c (proc_daemon): double fork to ensure not having ctty. [ruby-core:23311] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 127901f80a..fe99222ba4 100644 --- a/configure.in +++ b/configure.in @@ -727,6 +727,14 @@ AC_ARG_ENABLE(pthread, [enable_pthread=$enableval], [enable_pthread=$enable_pthread_default]) dnl Checks for libraries. +case "$target_os" in +when(*bsd*|dragonfly*) + ;; +when(*) + ac_cv_func_daemon=no + ;; +esac + case "$target_os" in when(nextstep*) ;; when(openstep*) ;; @@ -744,7 +752,6 @@ when(darwin*) RUBY_PREPEND_OPTION(LIBS, -lobjc) AC_MSG_RESULT($macosx_10_5) if test $macosx_10_5 = yes; then ac_cv_header_ucontext_h=no - ac_cv_func_daemon=no else AC_DEFINE(BROKEN_SETREUID, 1) AC_DEFINE(BROKEN_SETREGID, 1) -- cgit v1.2.3