From 3c3b7dab2182d8209581f7f21e6f21a2d0683d6a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 9 Dec 2016 14:44:08 -0800 Subject: Pass DIRTREE_PROC through the ps callbacks. --- toys/posix/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') diff --git a/toys/posix/ps.c b/toys/posix/ps.c index 3a3b8c11..8404e793 100644 --- a/toys/posix/ps.c +++ b/toys/posix/ps.c @@ -616,7 +616,7 @@ static int get_ps(struct dirtree *new) // Recurse one level into /proc children, skip non-numeric entries if (!new->parent) - return DIRTREE_RECURSE|DIRTREE_SHUTUP + return DIRTREE_RECURSE|DIRTREE_SHUTUP|DIRTREE_PROC |(DIRTREE_SAVE*(TT.threadparent||!TT.show_process)); memset(slot, 0, sizeof(tb->slot)); -- cgit v1.2.3