appears lsof on debian9 is bugged some exits 1 even if it worked

This commit is contained in:
Zane C. B-H 2019-08-09 06:55:44 -05:00
parent 82716c38d1
commit 981f1a36f5
1 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,13 @@ BEGIN {
}
my $output_raw=`lsof -i UDP -i TCP -n -l -P`;
if ( $? eq 0 ){
if (
( $? eq 0 ) ||
(
( $^O =~ /linux/ ) &&
( $? eq 256 )
)
){
$extra_tests=2;
my $worked=0;
my $ncnetstat;