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
1 changed files with 8 additions and 0 deletions

View File

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