]> git.proxmox.com Git - qemu-server.git/commit - PVE/API2/Qemu.pm
API/clone: do not overwrite global signal handlers
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 Sep 2017 11:29:06 +0000 (13:29 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Sep 2017 08:39:28 +0000 (10:39 +0200)
commiteaae66be9fd576b858cd62b3a15c1a1c31d3c20b
treec128ae276f62a14a313ff729fd45a79d0d3e1367
parentedd48c325aee7208f0956cbddf1f827bce66d90d
API/clone: do not overwrite global signal handlers

perls 'local' must be either used in front of each $SIG{...}
assignments or they must be put in a list, else it affects only the
first variable and the rest are *not* in local context.

This may cause weird behaviour where daemons seemingly do not get
terminating signals delivered correctly and thus may not shutdown
gracefully anymore.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm