diff --git a/logging.c b/logging.c index 375f7abe1..ad27bf193 100644 --- a/logging.c +++ b/logging.c @@ -436,12 +436,13 @@ static void send_mail() * * reapchild() * - * This function gets rid fo all the ugly zombies + * This function gets rid of all the ugly zombies */ static RETSIGTYPE reapchild() { - (void) wait(NULL); + (void) wait(NULL); + (void) signal(SIGCHLD, reapchild); }