From: Roland McGrath Date: Fri, 10 Feb 1995 23:44:03 +0000 (+0000) Subject: (start_job_command): Remember to call notice_finsihed_file under -n when X-Git-Tag: 3.72.6^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5af4810ff3c4d2f7a080ba642918c128f33a349;p=thirdparty%2Fmake.git (start_job_command): Remember to call notice_finsihed_file under -n when not recursing. To do this, consolidate that code under the empty command case and goto there for the -n case. --- diff --git a/job.c b/job.c index 5b3af833..8640b27f 100644 --- a/job.c +++ b/job.c @@ -592,6 +592,7 @@ start_job_command (child) if (argv == 0) { + next_command: /* This line has no commands. Go to the next. */ if (job_next_command (child)) start_job_command (child); @@ -624,10 +625,7 @@ start_job_command (child) { free (argv[0]); free ((char *) argv); - if (job_next_command (child)) - start_job_command (child); - child->file->update_status = 0; - return; + goto next_command; } /* Flush the output streams so they won't have things written twice. */