2
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

distinguish between open and close for pipe error messages

This commit is contained in:
Antoine Beaupré 2012-03-09 19:24:50 -05:00
parent 7fdf0482fa
commit b1c0367027

View file

@ -97,7 +97,7 @@ elsif ($cmd eq 'autoconf') {
} }
fail("$logfile unreadable)") unless -r $logfile; fail("$logfile unreadable)") unless -r $logfile;
fail("$configfile unreadable") unless -r $configfile; fail("$configfile unreadable") unless -r $configfile;
open(my $status, "relayctl show summary|") or fail("cannot run relayctl: $!"); open(my $status, "relayctl show summary|") or fail("cannot open relayctl pipe: $!");
close($status) or fail("cannot run relayctl: $!"); close($status) or fail("cannot run relayctl: $!");
print "yes"; print "yes";
exit(0); exit(0);