version 1.159, 2020/01/16 16:07:18 |
version 1.160, 2020/01/29 17:06:51 |
|
|
Job *job; |
Job *job; |
|
|
while ((pid = waitpid(WAIT_ANY, &status, WNOHANG)) > 0) { |
while ((pid = waitpid(WAIT_ANY, &status, WNOHANG)) > 0) { |
|
if (WIFSTOPPED(status)) |
|
continue; |
reaped = true; |
reaped = true; |
job = reap_finished_job(pid); |
job = reap_finished_job(pid); |
|
|
if (job == NULL) { |
if (job == NULL) { |
Punt("Child (%ld) not in table?", (long)pid); |
Punt("Child (%ld) with status %d not in table?", |
|
(long)pid, status); |
} else { |
} else { |
handle_job_status(job, status); |
handle_job_status(job, status); |
determine_job_next_step(job); |
determine_job_next_step(job); |