diff options
author | wzur <wzur@users.noreply.github.com> | 2016-03-31 14:25:39 +0100 |
---|---|---|
committer | wzur <wzur@users.noreply.github.com> | 2016-03-31 14:25:39 +0100 |
commit | a9a663c0b42db6563db8ac838d3451ca2e59a59e (patch) | |
tree | 6d6a117b0fbeeaf5b7861f769152b4e6c32142ad /lib | |
parent | 100b1a52ebbc37ee69d9ed9f8d730c2cbaf99e81 (diff) | |
download | vyatta-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.pm | 1 |
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 =~/^\#/); |