1 #include <errno.h> /* error simbol definitions */
2 #include <signal.h> /* signal handling declarations */
7 void Hand_CHLD(int sig)
12 /* save errno current value */
17 pid = waitpid(WAIT_ANY, &status, WNOHANG);
19 debug("child %d terminated with status %x\n", pid, status);
21 } while ((pid > 0) && (errno == EINTR));
22 /* restore errno value*/