# HG changeset patch
# User Karl Heuer <kwzh@gnu.org>
# Date 837467485 0
# Node ID d50b8a2e6fe5bc5118f6ea6d391399d172f2a076
# Parent  7f87e3c7b29cbad34f9f0fd4c7b68d886f5c34e4
(create_process_1, sigchld_handler):
Don't reinstall sig handler if POSIX_SIGNALS.

diff -r 7f87e3c7b29c -r d50b8a2e6fe5 src/process.c
--- 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;