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>
This commit is contained in:
will 2007-03-08 07:57:43 +00:00
parent 03b6c30cc0
commit f6d48b2630

View File

@ -2338,7 +2338,7 @@ Job_Init(int maxproc)
jobFull = FALSE;
}
}
if (fifoFd <= 0) {
if (fifoFd < 0) {
maxJobs = maxproc;
jobFull = FALSE;
} else {