From f487a6a8119f435d21d48e86fb7904f8a1179b1b Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 22 Mar 2007 17:47:58 +0000 Subject: [PATCH] Use proc name (ki_comm) instead of thread name (ki_ocomm) as these may now be different. --- usr.bin/sockstat/sockstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c index bd71c5352f9..c5d6067ef87 100644 --- a/usr.bin/sockstat/sockstat.c +++ b/usr.bin/sockstat/sockstat.c @@ -529,7 +529,7 @@ getprocname(pid_t pid) warn("sysctl()"); return ("??"); } - return (proc.ki_ocomm); + return (proc.ki_comm); } static int