mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Kill child processes when the server exits.
(cherry picked from commit c3b9f9bdbb78c9570ae97732a91daa39ea35183a)
This commit is contained in:
parent
6a98ac8288
commit
ddfeafa1f0
@ -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", -$$);
|
||||
}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user