monitoring/nocpulse-common/perl-API/NOCpulse/NOCpulseini.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 85c7648b92f73f06cc8c79fa57b6919c08e216c0
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Apr 29 16:21:13 2011 +0200
The close of IO::AtomicFile can also die, we should catch it right there.
diff --git a/monitoring/nocpulse-common/perl-API/NOCpulse/NOCpulseini.pm
b/monitoring/nocpulse-common/perl-API/NOCpulse/NOCpulseini.pm
index bc3d5d7..228d868 100644
--- a/monitoring/nocpulse-common/perl-API/NOCpulse/NOCpulseini.pm
+++ b/monitoring/nocpulse-common/perl-API/NOCpulse/NOCpulseini.pm
@@ -66,7 +66,7 @@ sub save {
# You should not edit this file directly. All changes will be lost after
# Monitoring restart. Please use script NOCpulse-ini.
WARNING
- $fh->close();
+ $fh->close() or die "Error closing $filename: $!";
# Be sure to make the file world-readable!
chmod(0644, $filename) or die "Couldn't chmod $filename: $!";
}
Show replies by date