no longer use $bproc on for checking if it is a kernel thread
This commit is contained in:
parent
aaa507fdeb
commit
02c1440a42
|
@ -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.']';
|
||||
|
|
Loading…
Reference in New Issue