aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorKarl Heuer1996-07-15 21:51:25 +0000
committerKarl Heuer1996-07-15 21:51:25 +0000
commitc1fc797324cf3a7ae95c92b9248df081f2f4dd88 (patch)
tree3b008e28ea19e8e1506e4ad5fc2f7b0027d41810 /src/process.c
parentf6142d98f0ed603513c50a728cebef2210ca8462 (diff)
downloademacs-c1fc797324cf3a7ae95c92b9248df081f2f4dd88.tar.gz
emacs-c1fc797324cf3a7ae95c92b9248df081f2f4dd88.zip
(create_process_1, sigchld_handler):
Don't reinstall sig handler if POSIX_SIGNALS.
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 a527066277b..ef00094401c 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1167,7 +1167,7 @@ SIGTYPE
1167create_process_1 (signo) 1167create_process_1 (signo)
1168 int signo; 1168 int signo;
1169{ 1169{
1170#ifdef USG 1170#if defined(USG) && !defined(POSIX_SIGNALS)
1171 /* USG systems forget handlers when they are used; 1171 /* USG systems forget handlers when they are used;
1172 must reestablish each time */ 1172 must reestablish each time */
1173 signal (signo, create_process_1); 1173 signal (signo, create_process_1);
@@ -3352,7 +3352,7 @@ sigchld_handler (signo)
3352 3352
3353 /* USG systems forget handlers when they are used; 3353 /* USG systems forget handlers when they are used;
3354 must reestablish each time */ 3354 must reestablish each time */
3355#ifdef USG 3355#if defined(USG) && !defined(POSIX_SIGNALS)
3356 signal (signo, sigchld_handler); /* WARNING - must come after wait3() */ 3356 signal (signo, sigchld_handler); /* WARNING - must come after wait3() */
3357#endif 3357#endif
3358#ifdef BSD4_1 3358#ifdef BSD4_1
@@ -3460,7 +3460,7 @@ sigchld_handler (signo)
3460 Otherwise (on systems that have WNOHANG), loop around 3460 Otherwise (on systems that have WNOHANG), loop around
3461 to use up all the processes that have something to tell us. */ 3461 to use up all the processes that have something to tell us. */
3462#if defined (USG) && ! (defined (HPUX) && defined (WNOHANG)) || defined (WINDOWSNT) 3462#if defined (USG) && ! (defined (HPUX) && defined (WNOHANG)) || defined (WINDOWSNT)
3463#ifdef USG 3463# if defined (USG) && ! defined(POSIX_SIGNALS)
3464 signal (signo, sigchld_handler); 3464 signal (signo, sigchld_handler);
3465#endif 3465#endif
3466 errno = old_errno; 3466 errno = old_errno;