Get rid of "killing <pid>" message for unused build hooks

This commit is contained in:
Eelco Dolstra 2014-08-04 17:27:45 +02:00
parent bb45092f72
commit 4d73e2e893
3 changed files with 5 additions and 4 deletions

View file

@ -623,7 +623,7 @@ HookInstance::HookInstance()
HookInstance::~HookInstance()
{
try {
pid.kill();
pid.kill(true);
} catch (...) {
ignoreException();
}

View file

@ -740,10 +740,11 @@ Pid::operator pid_t()
}
void Pid::kill()
void Pid::kill(bool quiet)
{
if (pid == -1 || pid == 0) return;
if (!quiet)
printMsg(lvlError, format("killing process %1%") % pid);
/* Send the requested signal to the child. If it has its own

View file

@ -253,7 +253,7 @@ public:
~Pid();
void operator =(pid_t pid);
operator pid_t();
void kill();
void kill(bool quiet = false);
int wait(bool block);
void setSeparatePG(bool separatePG);
void setKillSignal(int signal);