From 10f90b04c302d3e3e3840029641125b2ba676008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Fri, 9 Mar 2012 19:27:29 -0500 Subject: [PATCH] explain why we read data we then discard --- plugins/relayd/relayd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relayd/relayd b/plugins/relayd/relayd index 45ac5e6d..d6174128 100755 --- a/plugins/relayd/relayd +++ b/plugins/relayd/relayd @@ -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);