From: Roland McGrath Date: Tue, 1 Nov 1994 08:34:10 +0000 (+0000) Subject: (start_job_command): When ARGV is nil, only set update_state and call X-Git-Tag: 3.71.5~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0163410d2db04634eed225d3a37e39aeb7bd44a;p=thirdparty%2Fmake.git (start_job_command): When ARGV is nil, only set update_state and call notice_finished_file if job_next_command returns zero. --- diff --git a/job.c b/job.c index 4c6e4f3d..337703f0 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; }