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

Aaron LI aly at crater.dragonflybsd.org
Sat Feb 11 00:04:46 PST 2023


commit 4d61aa9711e73e054c2393ff5698cf3cabe02546
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/4d61aa9711e73e054c2393ff5698cf3cabe02546


-- 
DragonFly BSD source repository


More information about the Commits mailing list