1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

explain why we read data we then discard

This commit is contained in:
Antoine Beaupré 2012-03-09 19:27:29 -05:00
parent 20191c2b0c
commit 10f90b04c3

View file

@ -98,7 +98,7 @@ elsif ($cmd eq 'autoconf') {
fail("$logfile unreadable)") unless -r $logfile;
fail("$configfile unreadable") unless -r $configfile;
open(my $status, "relayctl show summary|") or fail("cannot open relayctl pipe: $!");
() = <$status>;
() = <$status>; # necessary to avoid SIGPIPE to relayctl, which would make it fail
close($status) or fail("cannot run relayctl: $!");
print "yes\n";
exit(0);