From ff00a1677282eec0a1ec674875dfcc1fd63493c2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 26 Nov 2003 09:39:43 +0000 Subject: link beat detection: enable both net_monitor and drakconnect usage at both time (not so usefull but cleaner) --- perl-install/network/tools.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm index 544833fc7..2209fdcc8 100644 --- a/perl-install/network/tools.pm +++ b/perl-install/network/tools.pm @@ -161,10 +161,9 @@ sub detect_timezone() { sub connected() { gethostbyname("mandrakesoft.com") ? 1 : 0 } -my $kid_pipe; # request a ref on a bg_connect and a ref on a scalar sub connected_bg__raw { - my ($kid, $status) = @_; + my ($kid_pipe, $status) = @_; local $| = 1; if (ref($kid_pipe) && ref($$kid_pipe)) { my $fd = $$kid_pipe->{fd}; @@ -174,6 +173,7 @@ sub connected_bg__raw { } else { $$kid_pipe = check_link_beat() } } +my $kid_pipe; sub connected_bg { my ($status) = @_; connected_bg__raw(\$kid_pipe, $status); -- cgit v1.2.1