package Net::Ping;
-# $Id: Ping.pm,v 1.11 2001/12/04 02:41:51 rob Exp $
+# $Id: Ping.pm,v 1.13 2001/12/07 02:18:44 rob Exp $
require 5.002;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(pingecho);
-$VERSION = 2.07;
+$VERSION = 2.09;
# Constants
$child = waitpid($pid, &POSIX::WNOHANG);
$! = $? >> 8;
$@ = $!;
- sleep 1;
+ select(undef, undef, undef, 0.1);
} while time < $patience && $child != $pid;
if ($child == $pid) {
Net::Ping - check a remote host for reachability
-$Id: Ping.pm,v 1.11 2001/12/04 02:41:51 rob Exp $
+$Id: Ping.pm,v 1.13 2001/12/07 02:18:44 rob Exp $
=head1 SYNOPSIS