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:
parent
20191c2b0c
commit
10f90b04c3
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,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 open relayctl pipe: $!");
|
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: $!");
|
close($status) or fail("cannot run relayctl: $!");
|
||||||
print "yes\n";
|
print "yes\n";
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue