summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-09-04 15:07:07 +0000
committerRichard M. Stallman <rms@gnu.org>1996-09-04 15:07:07 +0000
commit963777a315faced637f5b60b2dbfefb53863e5c5 (patch)
tree4b2f42e82f1eebfc3c282f3dd6c988684e94bcf7 /src/process.c
parent99e8276929f4ae4ac9a7d4631fcaa4644720ed30 (diff)
downloademacs-963777a315faced637f5b60b2dbfefb53863e5c5.tar.gz
(create_process_1, sigchld_handler) [POSIX_SIGNALS]:
Don't reestablish handler.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c6
1 files changed, 3 insertions, 3 deletions
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;