From 03b83ee148b62fe56aa834a0e0c96352d34ef587 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 24 Jan 2018 15:10:44 -0600 Subject: Revert the ps -T thing until I understand what Elliott wants. --- toys/posix/ps.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/toys/posix/ps.c b/toys/posix/ps.c index 7741dcd3..fd9b54bc 100644 --- a/toys/posix/ps.c +++ b/toys/posix/ps.c @@ -680,11 +680,8 @@ static int get_ps(struct dirtree *new) memset(slot, 0, sizeof(tb->slot)); tb->slot[SLOT_tid] = *slot = atol(new->name); - if (TT.threadparent && TT.threadparent->extra) { - *slot = *(((struct carveup *)TT.threadparent->extra)->slot); - // Parent also shows up as a thread, discard duplicate - if (*slot == tb->slot[SLOT_tid]) return 0; - } + if (TT.threadparent && TT.threadparent->extra) + if (*slot == *(((struct carveup *)TT.threadparent->extra)->slot)) return 0; fd = dirtree_parentfd(new); len = 2048; -- cgit v1.2.3