aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-12-09 14:44:08 -0800
committerRob Landley <rob@landley.net>2016-12-09 18:56:07 -0600
commit3c3b7dab2182d8209581f7f21e6f21a2d0683d6a (patch)
treeacf1f7bd08dc13ba00514fd6ffc719b565cff438 /toys/posix
parentddb6b855d3698f72fec04b0734c60001803b608c (diff)
downloadtoybox-3c3b7dab2182d8209581f7f21e6f21a2d0683d6a.tar.gz
Pass DIRTREE_PROC through the ps callbacks.
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/ps.c2
1 files changed, 1 insertions, 1 deletions
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));