daemon: Unregister build hook from the worker's children upon build failure.
Fixes <https://bugs.gnu.org/38062>. This is a followup to ada9a19a2dca74feafcf24df1152abd685d4142f. * nix/libstore/build.cc (DerivationGoal::killChild): Add conditional call to 'worker.childTerminated' for 'hook->pid'.
This commit is contained in:
parent
32793c09ff
commit
af73beeba1
@ -947,6 +947,11 @@ void DerivationGoal::killChild()
|
||||
assert(pid == -1);
|
||||
}
|
||||
|
||||
/* If there was a build hook involved, remove it from the worker's
|
||||
children. */
|
||||
if (hook && hook->pid != -1) {
|
||||
worker.childTerminated(hook->pid);
|
||||
}
|
||||
hook.reset();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user