From: Richard M. Stallman Date: Wed, 4 Sep 1996 15:07:07 +0000 (+0000) Subject: (create_process_1, sigchld_handler) [POSIX_SIGNALS]: X-Git-Tag: emacs-20.1~3828 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3c0ee47b71f71896291fa8e8e4795db233a8a1b2;p=emacs.git (create_process_1, sigchld_handler) [POSIX_SIGNALS]: Don't reestablish handler. --- diff --git a/src/process.c b/src/process.c index be450f936e5..b33b7201913 100644 --- a/src/process.c +++ b/src/process.c @@ -1177,7 +1177,7 @@ SIGTYPE create_process_1 (signo) int signo; { -#ifdef USG +#if defined (USG) && !defined (POSIX_SIGNALS) /* USG systems forget handlers when they are used; must reestablish each time */ signal (signo, create_process_1); @@ -3371,7 +3371,7 @@ sigchld_handler (signo) /* USG systems forget handlers when they are used; must reestablish each time */ -#ifdef USG +#if defined (USG) && !defined (POSIX_SIGNALS) signal (signo, sigchld_handler); /* WARNING - must come after wait3() */ #endif #ifdef BSD4_1 @@ -3479,7 +3479,7 @@ sigchld_handler (signo) Otherwise (on systems that have WNOHANG), loop around to use up all the processes that have something to tell us. */ #if defined (USG) && ! (defined (HPUX) && defined (WNOHANG)) || defined (WINDOWSNT) -#ifdef USG +#if defined (USG) && ! defined (POSIX_SIGNALS) signal (signo, sigchld_handler); #endif errno = old_errno;