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