Use proc name (ki_comm) instead of thread name (ki_ocomm) as these may now
be different.
This commit is contained in:
parent
58bffa15c2
commit
f487a6a811
@ -529,7 +529,7 @@ getprocname(pid_t pid)
|
||||
warn("sysctl()");
|
||||
return ("??");
|
||||
}
|
||||
return (proc.ki_ocomm);
|
||||
return (proc.ki_comm);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user