Correzioni varie al codice ed alle relative citazioni
[gapil.git] / sources / Hand_CHLD.c
diff --git a/sources/Hand_CHLD.c b/sources/Hand_CHLD.c
deleted file mode 100644 (file)
index c5113ee..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <errno.h>       /* error simbol definitions */
-#include <signal.h>      /* signal handling declarations */
-#include <sys/types.h>
-#include <sys/wait.h>
-#include "macro.h"
-
-void Hand_CHLD(int sig)
-{
-    int errno_save;
-    int status;
-    pid_t pid;
-    /* save errno current value */
-    errno_save = errno;
-    /* loop until no */
-    do {
-       errno = 0;
-       pid = waitpid(WAIT_ANY, &status, WNOHANG);
-       if (pid > 0) {
-           debug("child %d terminated with status %x\n", pid, status);
-       }
-    } while ((pid > 0) && (errno == EINTR));
-    /* restore errno value*/
-    errno = errno_save;
-    /* return */
-    return;
-}