Make hook shutdown more reliable
This commit is contained in:
parent
ea837e470f
commit
d4e7c195fa
|
@ -629,7 +629,6 @@ HookInstance::HookInstance()
|
||||||
});
|
});
|
||||||
|
|
||||||
pid.setSeparatePG(true);
|
pid.setSeparatePG(true);
|
||||||
pid.setKillSignal(SIGTERM);
|
|
||||||
fromHook.writeSide.close();
|
fromHook.writeSide.close();
|
||||||
toHook.readSide.close();
|
toHook.readSide.close();
|
||||||
}
|
}
|
||||||
|
@ -638,6 +637,7 @@ HookInstance::HookInstance()
|
||||||
HookInstance::~HookInstance()
|
HookInstance::~HookInstance()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
toHook.writeSide.close();
|
||||||
pid.kill(true);
|
pid.kill(true);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
ignoreException();
|
ignoreException();
|
||||||
|
|
Loading…
Reference in New Issue