appears lsof on debian9 is bugged some exits 1 even if it worked
This commit is contained in:
parent
82716c38d1
commit
981f1a36f5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue