summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorwzur <wzur@users.noreply.github.com>2016-03-31 14:25:39 +0100
committerwzur <wzur@users.noreply.github.com>2016-03-31 14:25:39 +0100
commita9a663c0b42db6563db8ac838d3451ca2e59a59e (patch)
tree6d6a117b0fbeeaf5b7861f769152b4e6c32142ad /lib
parent100b1a52ebbc37ee69d9ed9f8d730c2cbaf99e81 (diff)
downloadvyatta-op-vpn-a9a663c0b42db6563db8ac838d3451ca2e59a59e.tar.gz
vyatta-op-vpn-a9a663c0b42db6563db8ac838d3451ca2e59a59e.zip
Explicitly close the IPSECCONF pipe
This should avoid problems when `cat` commands finishes, but `sudo` doesn't.
Diffstat (limited to 'lib')
-rw-r--r--lib/OPMode.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm
index f871533..cea7236 100644
--- a/lib/OPMode.pm
+++ b/lib/OPMode.pm
@@ -695,6 +695,7 @@ sub get_conns
while(<$IPSECCONF>){
push (@ipsecconf, $_);
}
+ close($IPSECCONF);
my %th = ();
for my $line (@ipsecconf){
next if ($line =~/^\#/);