Kill child processes when the server exits.
This commit is contained in:
parent
f85253c5b7
commit
c3b9f9bdbb
|
@ -702,3 +702,11 @@ else {
|
|||
win32_service_run();
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Kill any scripts started by the Pandora FMS Server that are still running.
|
||||
################################################################################
|
||||
END {{
|
||||
local $SIG{HUP} = "IGNORE";
|
||||
kill("HUP", -$$);
|
||||
}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue