]> git.proxmox.com Git - pve-guest-common.git/commit
AbstractMigrate: do not overwrite global signal handlers stable-4
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 Sep 2017 11:29:04 +0000 (13:29 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Sep 2017 08:34:07 +0000 (10:34 +0200)
commited183bcec8b339a8b7e8bbd6f2078d1fa1bb3120
treefc558f2b36a0e9f998b31071ca47ce612ffde62d
parentea0125ae22517a28304c2cee86a9f8262a53256f
AbstractMigrate: 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/AbstractMigrate.pm