Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6268d4c0 authored by Phani (Gargey) Avadhanam's avatar Phani (Gargey) Avadhanam Committed by Elliott Hughes
Browse files

Toolbox: |ps -t| now correctly displays the USER for threads

use tid to display thread information

Bug: https://code.google.com/p/android/issues/detail?id=198564
Bug: http://b/26470660


Signed-off-by: default avatar"Phani (Gargey) Avadhanam" <pgargey@codeaurora.org>
Change-Id: Ife8ce59d7b6eb6906ab39acebea18c7aee50339a
parent ae6aa1f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ static int ps_line(int pid, int tid)
    int prio, nice, rtprio, sched, psr;
    struct passwd *pw;

    sprintf(statline, "/proc/%d", pid);
    sprintf(statline, "/proc/%d", tid ? tid : pid);
    stat(statline, &stats);

    if(tid) {