From d6a2d094a3ca2eb266b3cb871c6b139d34b14648 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 19 Aug 1995 16:19:07 +0000 Subject: (ps_not_sess_leader_p, ps_unorphaned_p, ps_parent_p): Use the new state bits. --- libps/filters.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libps') diff --git a/libps/filters.c b/libps/filters.c index 345e90e8..d47a130f 100644 --- a/libps/filters.c +++ b/libps/filters.c @@ -44,7 +44,7 @@ struct ps_filter ps_own_filter = static bool ps_not_sess_leader_p(proc_stat_t ps) { - return !(proc_stat_state(ps) & PSTAT_STATE_SESSLDR); + return !(proc_stat_state(ps) & PSTAT_STATE_P_SESSLDR); } struct ps_filter ps_not_sess_leader_filter = {"not-sess-leader", PSTAT_STATE, ps_not_sess_leader_p}; @@ -53,7 +53,7 @@ static bool ps_unorphaned_p(proc_stat_t ps) { int state = proc_stat_state(ps); - return !(state & PSTAT_STATE_ORPHANED) || (state & PSTAT_STATE_SESSLDR); + return !(state & PSTAT_STATE_P_ORPHAN) || (state & PSTAT_STATE_P_SESSLDR); } struct ps_filter ps_unorphaned_filter = {"unorphaned", PSTAT_STATE, ps_unorphaned_p}; @@ -69,7 +69,7 @@ struct ps_filter ps_ctty_filter = static bool ps_parent_p(proc_stat_t ps) { - return !(proc_stat_state(ps) & PSTAT_STATE_NOPARENT); + return !(proc_stat_state(ps) & PSTAT_STATE_P_NOPARENT); } struct ps_filter ps_parent_filter = {"parent", PSTAT_STATE, ps_parent_p}; -- cgit v1.2.3