]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Kill unused para_reap_children().
authorAndre Noll <maan@systemlinux.org>
Mon, 20 Jul 2009 16:54:15 +0000 (18:54 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 20 Jul 2009 16:54:15 +0000 (18:54 +0200)
Found by cppcheck.

signal.c
signal.h

index 59a0d45aba7ad975fc287862308891435c4e9095..da395157c29ae8aff0459a2731e10ae7a13e90e6 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -102,20 +102,6 @@ int para_reap_child(pid_t *pid)
        return 1;
 }
 
-/**
- * Paraslash's zombie killer.
- *
- * It just calls \p para_reap_child() until there are no more children left to
- * reap.
- */
-void para_reap_children(void)
-{
-       pid_t pid;
-
-       while (para_reap_child(&pid) > 0)
-               ; /* nothing */
-}
-
 /**
  * Install the given handler for the given signal.
  *
index 685654d5aae87f64e8d02823521984d1291133f7..f55409df058fd6250dcd48aac3e6c629212b1e45 100644 (file)
--- a/signal.h
+++ b/signal.h
@@ -21,7 +21,6 @@ struct signal_task {
 int para_signal_init(void);
 void para_sigaction(int sig, void (*handler)(int));
 void para_install_sighandler(int);
-void para_reap_children(void);
 int para_reap_child(pid_t *pid);
 int para_next_signal(void);
 void para_signal_shutdown(void);