Merge pull request #4798 from matthewbauer/relock-wait-for-build-slot-goals

Relock wait for build slot goals
This commit is contained in:
Eelco Dolstra 2021-05-13 13:07:35 +02:00 committed by GitHub
commit 340f831ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,6 +153,7 @@ void LocalDerivationGoal::killChild()
void LocalDerivationGoal::tryLocalBuild() {
unsigned int curBuilds = worker.getNrLocalBuilds();
if (curBuilds >= settings.maxBuildJobs) {
state = &DerivationGoal::tryToBuild;
worker.waitForBuildSlot(shared_from_this());
outputLocks.unlock();
return;