mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Handle missing status file
This commit is contained in:
@@ -147,11 +147,12 @@ foreach $p (@{$_[0]}) {
|
||||
local $backup = &get_dump($1);
|
||||
local $sfile = "$module_config_directory/$1.$p->{'pid'}.status";
|
||||
local %status;
|
||||
&read_file($sfile, \%status);
|
||||
$backup->{'status'} = \%status;
|
||||
$backup->{'pid'} = $p->{'pid'};
|
||||
push(@rv, $backup);
|
||||
$got{$sfile} = 1 if (!$status{'end'});
|
||||
if (&read_file($sfile, \%status)) {
|
||||
$backup->{'status'} = \%status;
|
||||
$backup->{'pid'} = $p->{'pid'};
|
||||
push(@rv, $backup);
|
||||
$got{$sfile} = 1 if (!$status{'end'});
|
||||
}
|
||||
}
|
||||
}
|
||||
# Remove any left over .status files
|
||||
|
||||
Reference in New Issue
Block a user