From 29b48ac8024fa3e636658d0f2dc9cd9b66d96288 Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 11 Jul 2018 19:39:29 +0000 Subject: [PATCH] MFC r335937: top: do not fall to the thread name if kernel cache of the process args is empty. --- usr.bin/top/machine.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 57b581ebdfd..2dfc87195ee 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1037,7 +1037,6 @@ format_next_process(caddr_t handle, char *(*get_userid)(int), int flags) } } else { if (pp->ki_flag & P_SYSTEM || - pp->ki_args == NULL || (args = kvm_getargv(kd, pp, cmdlen)) == NULL || !(*args)) { if (ps.thread && pp->ki_flag & P_HADTHREADS && -- 2.45.0