/* Clear any existing SIGCHLD handler to prevent interference
with our wait() */
act.sa_handler = SIG_DFL;
act.sa_flags = 0;
sigemptyset(&(act.sa_mask));
if (sigaction(SIGCHLD, &act, &oldact) == -1) {
/* Clear any existing SIGCHLD handler to prevent interference
with our wait() */
act.sa_handler = SIG_DFL;
act.sa_flags = 0;
sigemptyset(&(act.sa_mask));
if (sigaction(SIGCHLD, &act, &oldact) == -1) {