From 9c42997ed190ea8dc2cf04d674228a14035f59b3 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 13 Feb 2008 08:22:41 +0000 Subject: [PATCH] Handle missing status file --- fsdump/fsdump-lib.pl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fsdump/fsdump-lib.pl b/fsdump/fsdump-lib.pl index 1e32c2080..97aec0f7c 100644 --- a/fsdump/fsdump-lib.pl +++ b/fsdump/fsdump-lib.pl @@ -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