diff --git a/main.c b/main.c index a76b4794..c4a7ddf7 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