Kill child processes when the server exits.

(cherry picked from commit c3b9f9bdbb78c9570ae97732a91daa39ea35183a)
This commit is contained in:
Ramon Novoa 2016-10-27 15:31:19 +02:00
parent 6a98ac8288
commit ddfeafa1f0

View File

@ -694,3 +694,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", -$$);
}}