commit | 7a6cb3063cb9b0e8bf85b2d6b38b9754a478a376 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Jan 12 23:07:12 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Jan 12 23:07:12 2016 +0000 |
tree | 1fcf80d549b4c996e802038c876ebeed7d17f0b2 | |
parent | ae6aa1f1ed2a342b826b4e3a69267af8284ba52f [diff] | |
parent | 6268d4c057d33ae0aa6a65c7d7f01a4830581868 [diff] |
Merge "Toolbox: |ps -t| now correctly displays the USER for threads"
diff --git a/toolbox/ps.c b/toolbox/ps.c index 3bc540d..ecc1c9f 100644 --- a/toolbox/ps.c +++ b/toolbox/ps.c
@@ -57,7 +57,7 @@ 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) {