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:
parent
03b6c30cc0
commit
f6d48b2630
@ -2338,7 +2338,7 @@ Job_Init(int maxproc)
|
||||
jobFull = FALSE;
|
||||
}
|
||||
}
|
||||
if (fifoFd <= 0) {
|
||||
if (fifoFd < 0) {
|
||||
maxJobs = maxproc;
|
||||
jobFull = FALSE;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user