]> granicus.if.org Git - sudo/commitdiff
reinstall reapchild signal handler for non-bsd signals
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 24 May 1994 16:13:26 +0000 (16:13 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 24 May 1994 16:13:26 +0000 (16:13 +0000)
logging.c

index 375f7abe1bcc64c878c3d7f513c3432dd88c2579..ad27bf193847665b6ef0c7cbfef077280a42ff55 100644 (file)
--- 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);
 }