mirror of
https://git.proxmox.com/git/pve-common
synced 2025-04-28 18:43:47 +00:00
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 <w.bumiller@proxmox.com>
This commit is contained in:
parent
8e7d1b7ce5
commit
6c450ce52d
@ -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) = @_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user