Formerly job.c.~102~

This commit is contained in:
Roland McGrath 1993-05-06 21:30:10 +00:00
parent 29de1a7e5a
commit 9596950898

14
job.c
View File

@ -332,6 +332,17 @@ reap_children (block, err)
/* If there are more commands to run, try to start them. */
if (job_next_command (c))
{
if (handling_fatal_signal)
{
/* Never start new commands while we are dying.
Since there are more commands that wanted to be run,
the target was not completely remade. So we treat
this as if a command had failed. */
c->file->command_state = cs_finished;
c->file->update_status = 1;
}
else
{
/* Check again whether to start remotely.
Whether or not we want to changes over time.
@ -340,6 +351,7 @@ reap_children (block, err)
c->remote = start_remote_job_p ();
start_job_command (c);
}
}
switch (c->file->command_state)
{
@ -362,6 +374,7 @@ reap_children (block, err)
}
}
if (! handling_fatal_signal)
/* Notice if the target of the commands has been changed. */
notice_finished_file (c->file);
@ -375,6 +388,7 @@ reap_children (block, err)
children = c->next;
else
lastc->next = c->next;
if (! handling_fatal_signal) /* Avoid nonreentrancy. */
free_child (c);
/* There is now another slot open. */