aboutsummaryrefslogtreecommitdiff
path: root/procps/pstree.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/pstree.c')
-rw-r--r--procps/pstree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/procps/pstree.c b/procps/pstree.c
index 4cd8cb458..16649cfaa 100644
--- a/procps/pstree.c
+++ b/procps/pstree.c
@@ -339,12 +339,14 @@ static void dump_by_user(PROC *current, uid_t uid)
339 dump_by_user(walk->child, uid); 339 dump_by_user(walk->child, uid);
340} 340}
341 341
342#if ENABLE_FEATURE_SHOW_THREADS
342static void handle_thread(const char *comm, pid_t pid, pid_t ppid, uid_t uid) 343static void handle_thread(const char *comm, pid_t pid, pid_t ppid, uid_t uid)
343{ 344{
344 char threadname[COMM_LEN + 2]; 345 char threadname[COMM_LEN + 2];
345 sprintf(threadname, "{%.*s}", COMM_LEN - 2, comm); 346 sprintf(threadname, "{%.*s}", COMM_LEN - 2, comm);
346 add_proc(threadname, pid, ppid, uid/*, 1*/); 347 add_proc(threadname, pid, ppid, uid/*, 1*/);
347} 348}
349#endif
348 350
349static void mread_proc(void) 351static void mread_proc(void)
350{ 352{