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

This commit is contained in:
Elliott Hughes 2016-01-12 23:07:12 +00:00 committed by Gerrit Code Review
commit 7a6cb3063c

View file

@ -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) {