forked from lix-project/lix
Get rid of "killing <pid>" message for unused build hooks
This commit is contained in:
parent
bb45092f72
commit
4d73e2e893
|
@ -623,7 +623,7 @@ HookInstance::HookInstance()
|
||||||
HookInstance::~HookInstance()
|
HookInstance::~HookInstance()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
pid.kill();
|
pid.kill(true);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
ignoreException();
|
ignoreException();
|
||||||
}
|
}
|
||||||
|
|
|
@ -740,11 +740,12 @@ Pid::operator pid_t()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Pid::kill()
|
void Pid::kill(bool quiet)
|
||||||
{
|
{
|
||||||
if (pid == -1 || pid == 0) return;
|
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
|
/* Send the requested signal to the child. If it has its own
|
||||||
process group, send the signal to every process in the child
|
process group, send the signal to every process in the child
|
||||||
|
|
|
@ -253,7 +253,7 @@ public:
|
||||||
~Pid();
|
~Pid();
|
||||||
void operator =(pid_t pid);
|
void operator =(pid_t pid);
|
||||||
operator pid_t();
|
operator pid_t();
|
||||||
void kill();
|
void kill(bool quiet = false);
|
||||||
int wait(bool block);
|
int wait(bool block);
|
||||||
void setSeparatePG(bool separatePG);
|
void setSeparatePG(bool separatePG);
|
||||||
void setKillSignal(int signal);
|
void setKillSignal(int signal);
|
||||||
|
|
Loading…
Reference in a new issue