git: DragonFly_RELEASE_6_4 top(1): Fix empty 'STATE' column for some system processes

Aaron LI aly at crater.dragonflybsd.org
Sat Feb 11 00:05:26 PST 2023


commit a08e642ad3840df1e9c2daf50baedc8776f266e8
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Feb 9 23:22:32 2023 +0800

    top(1): Fix empty 'STATE' column for some system processes
    
    Fix the wrong usage of 'kl_wmesg' field in 'kinfo_proc' struct.  It's a
    char array rather than a 'char *' pointer.  So check whether the
    'kl_wmesg' is an empty string before using it.  This fixes the empty
    'STATE' column for some system processes.

Summary of changes:
 usr.bin/top/m_dragonfly.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a08e642ad3840df1e9c2daf50baedc8776f266e8


-- 
DragonFly BSD source repository


More information about the Commits mailing list