changeset 15690:d50b8a2e6fe5

(create_process_1, sigchld_handler): Don't reinstall sig handler if POSIX_SIGNALS.
author Karl Heuer <kwzh@gnu.org>
date Mon, 15 Jul 1996 21:51:25 +0000
parents 7f87e3c7b29c
children f912ad203841
files src/process.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Mon Jul 15 21:48:55 1996 +0000
+++ b/src/process.c	Mon Jul 15 21:51:25 1996 +0000
@@ -1167,7 +1167,7 @@
 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);
@@ -3352,7 +3352,7 @@
 
 	  /* 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
@@ -3460,7 +3460,7 @@
 	 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;