From 6c450ce52d57fdc0dace34fe3d40e6ed33748399 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 7 Mar 2025 09:24:33 +0100 Subject: [PATCH] systemd: cleanup variable declarations Move `$signal_info` down to where we declare the rest of the variables shared with the callback. Signed-off-by: Wolfgang Bumiller --- src/PVE/Systemd.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PVE/Systemd.pm b/src/PVE/Systemd.pm index 14038e0..462ef19 100644 --- a/src/PVE/Systemd.pm +++ b/src/PVE/Systemd.pm @@ -44,7 +44,6 @@ sub unescape_unit { # main loop is being used as we need to wait signals. sub systemd_call($;$) { my ($code, $timeout) = @_; - my $signal_info; my $bus = Net::DBus->system(); my $reactor = Net::DBus::Reactor->main(); @@ -52,7 +51,7 @@ sub systemd_call($;$) { my $service = $bus->get_service('org.freedesktop.systemd1'); my $if = $service->get_object('/org/freedesktop/systemd1', 'org.freedesktop.systemd1.Manager'); - my ($finished, $current_result, $timer); + my ($finished, $current_result, $timer, $signal_info); my $finish_callback = sub { my ($result) = @_;