mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Get rid of "killing <pid>" message for unused build hooks
This commit is contained in:
parent
bb45092f72
commit
4d73e2e893
3 changed files with 5 additions and 4 deletions
|
@ -740,11 +740,12 @@ Pid::operator pid_t()
|
|||
}
|
||||
|
||||
|
||||
void Pid::kill()
|
||||
void Pid::kill(bool quiet)
|
||||
{
|
||||
if (pid == -1 || pid == 0) return;
|
||||
|
||||
printMsg(lvlError, format("killing process %1%") % pid);
|
||||
if (!quiet)
|
||||
printMsg(lvlError, format("killing process %1%") % pid);
|
||||
|
||||
/* Send the requested signal to the child. If it has its own
|
||||
process group, send the signal to every process in the child
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue