summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/job.c
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2007-03-08 07:57:43 +0000
committerwill <will@FreeBSD.org>2007-03-08 07:57:43 +0000
commitf6d48b2630c435828501c18fc4f28e9a6df9adfd (patch)
treeec64a79a0b664279f7f32e5f06ce3e91bfd23126 /usr.bin/make/job.c
parent03b6c30cc05e5c72139603443e760da347189a27 (diff)
downloadFreeBSD-src-f6d48b2630c435828501c18fc4f28e9a6df9adfd.zip
FreeBSD-src-f6d48b2630c435828501c18fc4f28e9a6df9adfd.tar.gz
Fix a bug where the standard input (fifoFd == 0) was confused with an
error return from open(2), leading to an erroneous value of maxJobs and a hung make when -f is standard input and -j is used. PR: bin/101232 Submitted by: Nate Eldredge <nge@cs.hmc.edu>
Diffstat (limited to 'usr.bin/make/job.c')
-rw-r--r--usr.bin/make/job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index 6aa0aad..7bb31cd 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -2338,7 +2338,7 @@ Job_Init(int maxproc)
jobFull = FALSE;
}
}
- if (fifoFd <= 0) {
+ if (fifoFd < 0) {
maxJobs = maxproc;
jobFull = FALSE;
} else {
OpenPOWER on IntegriCloud