]> git.proxmox.com Git - pve-manager-legacy.git/commit
pvescheduler: catch errors in forked childs
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 18 Nov 2021 13:28:29 +0000 (14:28 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Nov 2021 16:19:12 +0000 (17:19 +0100)
commit84eaf9c6670e270641378de39e45632b2da2a57d
treec0bfb9655712296377fa4fdc6053b9e40e1fec9e
parent158676c8326faf8c70fcc3ac8516eef6a24b527d
pvescheduler: catch errors in forked childs

if '$sub' dies, the error handler of PVE::Daemon triggers, which
initiates a shutdown of the child, resulting in confusing error logs
(e.g. 'got shutdown request, signal running jobs to stop')

instead, run it under 'eval' and print the error to the sylog instead

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/Service/pvescheduler.pm