cleanup the resturn to prevent pointless stderr
This commit is contained in:
parent
af843ec121
commit
65c3a237d9
|
@ -1,5 +1,8 @@
|
|||
Revision history for Net-Connection-lsof
|
||||
|
||||
0.3.0 2023-06-01/13:15
|
||||
- Redirect stderr to dev null to prevent pointless warning about kern diffferences from lsof.
|
||||
|
||||
0.2.0 2019-08-16/16:40
|
||||
- WChan support added to Linux.
|
||||
|
||||
|
|
|
@ -17,11 +17,11 @@ Net::Connection::lsof - This uses lsof to generate a array of Net::Connection ob
|
|||
|
||||
=head1 VERSION
|
||||
|
||||
Version 0.2.0
|
||||
Version 0.3.0
|
||||
|
||||
=cut
|
||||
|
||||
our $VERSION = '0.2.0';
|
||||
our $VERSION = '0.3.0';
|
||||
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
@ -100,7 +100,7 @@ sub lsof_to_nc_objects{
|
|||
$func_args{proc_info}=1;
|
||||
}
|
||||
|
||||
my $output_raw=`lsof -i UDP -i TCP -n -l -P`;
|
||||
my $output_raw=`lsof -i UDP -i TCP -n -l -P 2> /dev/null`;
|
||||
if (
|
||||
( $? ne 0 ) &&
|
||||
(
|
||||
|
@ -307,14 +307,6 @@ You can also look for information at:
|
|||
|
||||
L<https://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Connection-lsof>
|
||||
|
||||
=item * AnnoCPAN: Annotated CPAN documentation
|
||||
|
||||
L<http://annocpan.org/dist/Net-Connection-lsof>
|
||||
|
||||
=item * CPAN Ratings
|
||||
|
||||
L<https://cpanratings.perl.org/d/Net-Connection-lsof>
|
||||
|
||||
=item * Search CPAN
|
||||
|
||||
L<https://metacpan.org/release/Net-Connection-lsof>
|
||||
|
|
|
@ -11,7 +11,7 @@ BEGIN {
|
|||
}
|
||||
|
||||
|
||||
my $output_raw=`lsof -i UDP -i TCP -n -l -P`;
|
||||
my $output_raw=`lsof -i UDP -i TCP -n -l -P 2> /dev/null`;
|
||||
if (
|
||||
( $? eq 0 ) ||
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue