},
'libnet' => {
- 'DISTRIBUTION' => 'SHAY/libnet-3.12.tar.gz',
+ 'DISTRIBUTION' => 'SHAY/libnet-3.13.tar.gz',
'FILES' => q[cpan/libnet],
'EXCLUDED' => [
qw( Configure
}
}
-our $VERSION = "3.12";
+our $VERSION = "3.13";
our @ISA = qw(Exporter);
our @EXPORT = qw(CMD_INFO CMD_OK CMD_MORE CMD_REJECT CMD_ERROR CMD_PENDING);
my $rin = "";
vec($rin, $fd, 1) = 1;
- my $timeout = $cmd->timeout || undef;
- my $initial = time;
- my $pending = $timeout;
-
my $buf;
until (scalar(@{${*$cmd}{'net_cmd_lines'}})) {
+ my $timeout = $cmd->timeout || undef;
my $rout;
- my $select_ret = select($rout = $rin, undef, undef, $pending);
- if (defined $select_ret and $select_ret > 0) {
- my $r = sysread($cmd, $buf = "", 1024);
- if (! defined($r) ) {
+ my $select_ret = select($rout = $rin, undef, undef, $timeout);
+ if ($select_ret > 0) {
+ unless (sysread($cmd, $buf = "", 1024)) {
my $err = $!;
$cmd->close;
$cmd->_set_status_closed($err);
push(@{${*$cmd}{'net_cmd_lines'}}, map {"$_\n"} @buf);
}
- elsif (defined $select_ret && $select_ret == -1) {
- if ( $! == EINTR ) {
- if ( defined($timeout) ) {
- redo if ($pending = $timeout - ( time - $initial ) ) > 0;
- $cmd->_set_status_timeout;
- return;
- }
- redo;
- }
- my $err = $!;
- $cmd->close;
- $cmd->_set_status_closed($err);
- return;
- }
else {
$cmd->_set_status_timeout;
return;
=head1 VERSION
-Version 3.12
+Version 3.13
=head1 DATE
-09 Dec 2020
+23 Dec 2020
=head1 HISTORY
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(hostname hostdomain hostfqdn domainname);
-our $VERSION = "3.12";
+our $VERSION = "3.13";
my ($host, $domain, $fqdn) = (undef, undef, undef);
=head1 VERSION
-Version 3.12
+Version 3.13
=head1 DATE
-09 Dec 2020
+23 Dec 2020
=head1 HISTORY