|
Lines 587-592
Link Here
|
| 587 |
if (kill_link) |
587 |
if (kill_link) |
| 588 |
new_phase(PHASE_DORMANT); /* allow signal to end holdoff */ |
588 |
new_phase(PHASE_DORMANT); /* allow signal to end holdoff */ |
| 589 |
} while (phase == PHASE_HOLDOFF); |
589 |
} while (phase == PHASE_HOLDOFF); |
|
|
590 |
|
| 591 |
/* Wait for scripts to finish */ |
| 592 |
reap_kids(); |
| 593 |
if (n_children > 0) { |
| 594 |
childwait_done = 0; |
| 595 |
if (child_wait > 0) { |
| 596 |
TIMEOUT(childwait_end, NULL, child_wait); |
| 597 |
} |
| 598 |
if (debug) { |
| 599 |
struct subprocess *chp; |
| 600 |
dbglog("Waiting for %d child processes...", n_children); |
| 601 |
for (chp = children; chp != NULL; chp = chp->next) |
| 602 |
dbglog(" script %s, pid %d", chp->prog, chp->pid); |
| 603 |
} |
| 604 |
while (n_children > 0 && !childwait_done) { |
| 605 |
handle_events(); |
| 606 |
if (kill_link && !childwait_done) |
| 607 |
childwait_end(NULL); |
| 608 |
} |
| 609 |
} |
| 610 |
|
| 590 |
if (!persist) |
611 |
if (!persist) |
| 591 |
break; |
612 |
break; |
| 592 |
} |
613 |
} |
|
Lines 595-600
Link Here
|
| 595 |
/* Wait for scripts to finish */ |
616 |
/* Wait for scripts to finish */ |
| 596 |
reap_kids(); |
617 |
reap_kids(); |
| 597 |
if (n_children > 0) { |
618 |
if (n_children > 0) { |
|
|
619 |
childwait_done = 0; |
| 598 |
if (child_wait > 0) |
620 |
if (child_wait > 0) |
| 599 |
TIMEOUT(childwait_end, NULL, child_wait); |
621 |
TIMEOUT(childwait_end, NULL, child_wait); |
| 600 |
if (debug) { |
622 |
if (debug) { |