From 67a87ad0104d88e8b1711a3831d616598edb30c2 Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Sat, 17 Feb 2018 16:03:30 +0000 Subject: remove all references to SIGCLD --- acinclude.m4 | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 3f9ec93..19d0d50 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -128,42 +128,6 @@ AC_DEFUN([RC_TYPE_SIG_ATOMIC_T], [ ]) -dnl Do we have SysV SIGCLD semantics? In other words, if we set the -dnl action for SIGCLD to SIG_IGN does wait() always say ECHILD? Linux, -dnl of course, is bizarre here. It basically implements the SysV -dnl semantics, but if the parent calls wait() before the child calls -dnl exit(), wait() returns with the PID of the child as normal. (Real -dnl SysV waits for all children to exit, then returns with ECHILD.) -dnl Anyway, this is why the `sleep(1)' is there. -AC_DEFUN([RC_SYS_V_SIGCLD], [ - AC_CACHE_CHECK(for SysV SIGCLD semantics, rc_cv_sysv_sigcld, - AC_TRY_RUN([ -#include -#include -#include -#include -#include -int main(void) { - int i; - signal(SIGCLD, SIG_IGN); - switch (fork()) { - case -1: - return 1; - case 0: - return 0; - default: - sleep(1); - if (wait(&i) == -1 && errno == ECHILD) return 0; - else return 1; - } -} - ], rc_cv_sysv_sigcld=yes, rc_cv_sysv_sigcld=no, rc_cv_sysv_sigcld=yes)) - case "$rc_cv_sysv_sigcld" in - yes) AC_DEFINE(HAVE_SYSV_SIGCLD, 1, [Has SysV SIGCLD]) ;; - esac -]) - - dnl Do we have /dev/fd or /proc/self/fd? AC_DEFUN([RC_SYS_DEV_FD], [ AC_CACHE_CHECK(for /dev/fd, rc_cv_sys_dev_fd, -- cgit v1.2.3