summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'job.c')
-rw-r--r--job.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/job.c b/job.c
index a841366..816a217 100644
--- a/job.c
+++ b/job.c
@@ -784,7 +784,8 @@ start_waiting_jobs ()
/* Check for recently deceased descendants. */
reap_children (0, 0);
- if (job_slots_used > 0 && load_too_high ())
+ if (job_slots_used > 0
+ && (job_slots_used == job_slots || load_too_high ()))
/* We have started all the jobs we can at the moment. */
return;