netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=b50d9b8dc61a5719de7ae876231e5e68769f33ab

commit b50d9b8dc61a5719de7ae876231e5e68769f33ab
Author: Alastair Poole <[email protected]>
Date:   Fri May 15 21:27:59 2020 +0100

    FreeBSD: Add TID and name.
---
 src/bin/system/process.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/system/process.c b/src/bin/system/process.c
index 8a508b2..6374d0d 100644
--- a/src/bin/system/process.c
+++ b/src/bin/system/process.c
@@ -985,6 +985,7 @@ _proc_info_by_pid_fallback(int pid)
    p->nice = kp.ki_nice - NZERO;
    p->priority = kp.ki_pri.pri_level - PZERO;
    p->numthreads = kp.ki_numthreads;
+   p->tid = kp.ki_tid;
 
    return p;
 }
@@ -1002,10 +1003,9 @@ _proc_thread_info(struct kinfo_proc *kp, Eina_Bool 
is_thread)
 
    p->pid = kp->ki_pid;
    p->uid = kp->ki_uid;
+
    if (!is_thread)
      _cmd_get(p, kp);
-   else
-     p->command = strdup(kp->ki_tdname);
 
    p->cpu_id = kp->ki_oncpu;
    if (p->cpu_id == -1)
@@ -1024,6 +1024,9 @@ _proc_thread_info(struct kinfo_proc *kp, Eina_Bool 
is_thread)
    p->priority = kp->ki_pri.pri_level - PZERO;
    p->numthreads = kp->ki_numthreads;
 
+   p->tid = kp->ki_tid;
+   p->thread_name = strdup(kp->ki_tdname);
+
    return p;
 }
 

-- 


Reply via email to