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