summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/network/nfs.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/network/nfs.pm b/perl-install/network/nfs.pm
index dd841c5bf..5f381d1c1 100644
--- a/perl-install/network/nfs.pm
+++ b/perl-install/network/nfs.pm
@@ -22,7 +22,7 @@ sub check {
sub find_servers() {
- local (*F, $_);
+ local *F;
my $pid = open F, "rpcinfo-flushed -b mountd 2 |";
$SIG{ALRM} = sub { kill(15, $pid) };
alarm 1;
@@ -42,7 +42,12 @@ sub find_servers() {
sub find_exports {
my ($server) = @_;
- my (undef, @l) = `showmount -e $server->{ip}`;
+ local *F;
+ my $pid = open F, "showmount -e $server->{ip} |";
+ $SIG{ALRM} = sub { kill(15, $pid) };
+ alarm 5;
+
+ my (undef, @l) = <F>;
map { /(\S+)\s*(\S+)/; { name => $1, comment => $2 } } @l;
}