summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index a76b479..c4a7ddf 100644
--- a/main.c
+++ b/main.c
@@ -695,9 +695,10 @@ main (argc, argv, envp)
/* Set up to handle children dying. This must be done before
reading in the makefiles so that `shell' function calls will work. */
-#if defined (SIGCHLD) && !defined (USG)
+#ifdef SIGCHLD
(void) signal (SIGCHLD, child_handler);
-#else
+#endif
+#ifdef SIGCLD
(void) signal (SIGCLD, child_handler);
#endif