aboutsummaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'job.c')
-rw-r--r--job.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/job.c b/job.c
index 4c6e4f3..337703f 100644
--- a/job.c
+++ b/job.c
@@ -594,8 +594,12 @@ start_job_command (child)
/* This line has no commands. Go to the next. */
if (job_next_command (child))
start_job_command (child);
- child->file->update_status = 0;
- notice_finished_file (child->file);
+ else
+ {
+ /* No more commands. All done. */
+ child->file->update_status = 0;
+ notice_finished_file (child->file);
+ }
return;
}