diff options
author | Will Andrews <will@FreeBSD.org> | 2007-03-08 07:57:43 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2007-03-08 07:57:43 +0000 |
commit | ffb7adf38e3259c86dcb597451cc442834ec6da8 (patch) | |
tree | ec64a79a0b664279f7f32e5f06ce3e91bfd23126 /usr.bin/make/job.c | |
parent | 2ba44ac55715e86d9a0fb8f4955dadd54786bc4d (diff) | |
download | src-ffb7adf38e3259c86dcb597451cc442834ec6da8.tar.gz src-ffb7adf38e3259c86dcb597451cc442834ec6da8.zip |
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>
Notes
Notes:
svn path=/head/; revision=167329
Diffstat (limited to 'usr.bin/make/job.c')
-rw-r--r-- | usr.bin/make/job.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index 6aa0aadc0704..7bb31cda9f4d 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 { |