no longer use $bproc on for checking if it is a kernel thread

This commit is contained in:
Zane C. B-H 2019-01-07 04:36:44 -06:00
parent aaa507fdeb
commit 02c1440a42
1 changed files with 6 additions and 3 deletions

View File

@ -221,12 +221,15 @@ sub colorize{
my $kernel_proc=1; #just assuming yet, unless it is otherwise
#may possible be a zombie, run checks for on FreeBSD
if ($^O =~ /bsd/){
$kernel_proc=$bproc->{kthread};
if (
($^O =~ /bsd/) &&
($proc->{flags} =~ /2..$/)
){
$kernel_proc=1;
}
#need to find something similar as above for Linux
#
if ( $kernel_proc ){
$values{'proc'}='['.$fname.']';