if (status == -1) {
if (errno != EINTR)
com_err(whoami, errno, " error from op_select");
+ if (!inc_running || now - inc_started > INC_TIMEOUT)
+ next_incremental();
continue;
} else if (status != -2) {
com_err(whoami, 0, " wrong return from op_select_any");
}
if (takedown) break;
time(&now);
+ if (!inc_running || now - inc_started > INC_TIMEOUT)
+ next_incremental();
#ifdef notdef
fprintf(stderr, " tick\n");
#endif notdef
int pid;
while ((pid = wait3(&status, WNOHANG, (struct rusage *)0)) > 0) {
+ if (pid == inc_pid)
+ inc_running = 0;
if (!takedown && (status.w_termsig != 0 || status.w_retcode != 0))
com_err(whoami, 0, "%d: child exits with signal %d status %d",
pid, status.w_termsig, status.w_retcode);