Kill child processes when the server exits.

This commit is contained in:
Ramon Novoa 2016-10-27 15:31:19 +02:00
parent f85253c5b7
commit c3b9f9bdbb

View File

@ -702,3 +702,11 @@ else {
win32_service_run(); win32_service_run();
} }
################################################################################
# Kill any scripts started by the Pandora FMS Server that are still running.
################################################################################
END {{
local $SIG{HUP} = "IGNORE";
kill("HUP", -$$);
}}