summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--job.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/job.c b/job.c
index 1a55be7..3ed0569 100644
--- a/job.c
+++ b/job.c
@@ -513,6 +513,11 @@ start_job_command (child)
free ((char *) argv);
if (job_next_command (child))
start_job_command (child);
+ else
+ /* Normally, this is set by reap_children to indicate that
+ some commands were actually run. Under -n, reap_children
+ never gets called, so we increment it here. */
+ ++files_remade;
return;
}