summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-06-25 00:13:20 +0000
committerRoland McGrath <roland@redhat.com>1992-06-25 00:13:20 +0000
commit7ab158076296eb70a12d4fd55b101371b8fd02c3 (patch)
tree952e1a7d10e0e5c5dbef1cb886ff97c85af4e09c /job.c
parenta819615113cd7759ae4ce15354aabdc0c765a93a (diff)
downloadgunmake-7ab158076296eb70a12d4fd55b101371b8fd02c3.tar.gz
Formerly job.c.~75~
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 8c1d7f2..0eaa7f2 100644
--- a/job.c
+++ b/job.c
@@ -585,7 +585,8 @@ start_job (child)
{
/* Wait for the load to be low enough if this
is the first command in the sequence. */
- if (child->command_line - 1 == 0 && load_too_high ())
+ if (child->command_line - 1 == 0
+ && job_slots_used > 0 && load_too_high ())
{
/* Put this child on the chain of children waiting
for the load average to go down. */