mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
daemon: Unregister build hook from the worker's children upon build failure.
Fixes <https://bugs.gnu.org/38062>.
This is a followup to ada9a19a2d
.
* nix/libstore/build.cc (DerivationGoal::killChild): Add conditional
call to 'worker.childTerminated' for 'hook->pid'.
This commit is contained in:
parent
32793c09ff
commit
af73beeba1
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue