diff options
-rw-r--r-- | libps/filters.c | 6 |
1 files changed, 3 insertions, 3 deletions
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}; |