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

am: 7a6cb3063c

* commit '7a6cb3063cb9b0e8bf85b2d6b38b9754a478a376':
  Toolbox: |ps -t| now correctly displays the USER for threads
This commit is contained in:
Elliott Hughes 2016-01-12 23:12:54 +00:00 committed by android-build-merger
commit 6f97784152
1 changed files with 1 additions and 1 deletions

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