summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-09-07 07:02:23 +0000
committerRoland McGrath <roland@redhat.com>1994-09-07 07:02:23 +0000
commit9e97330bcbbd06fc3a31f4c2398ae27dfb13cc80 (patch)
tree4993879d37858fa7507767df052bf145cab1f22b /job.c
parent4969b416b82bc3c920720345086be68296a7bae9 (diff)
downloadmake-9e97330bcbbd06fc3a31f4c2398ae27dfb13cc80.tar.gz
(start_job_command): Whenever we set CHILD->file->update_status, call
notice_finished_file instead of just set_command_state.
Diffstat (limited to 'job.c')
-rw-r--r--job.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/job.c b/job.c
index 51d3576..f6fdc5f 100644
--- a/job.c
+++ b/job.c
@@ -438,7 +438,9 @@ reap_children (block, err)
}
if (! handling_fatal_signal)
- /* Notice if the target of the commands has been changed. */
+ /* Notice if the target of the commands has been changed.
+ This also propagates its values for command_state and
+ update_status to its also_make files. */
notice_finished_file (c->file);
if (debug_flag)
@@ -546,7 +548,7 @@ start_job_command (child)
if (question_flag && !(flags & COMMANDS_RECURSE))
{
child->file->update_status = 1;
- set_command_state (child->file, cs_finished);
+ notice_finished_file (child->file);
return;
}
@@ -726,7 +728,7 @@ start_job_command (child)
error:
child->file->update_status = 2;
- set_command_state (child->file, cs_finished);
+ notice_finished_file (child->file);
}
/* Try to start a child running.
@@ -955,7 +957,7 @@ job_next_command (child)
{
/* There are no more lines to be expanded. */
child->command_ptr = 0;
- set_command_state (child->file, cs_finished);
+ child->file->command_state = cs_finished;
child->file->update_status = 0;
return 0;
}