mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +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();
|
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