From 46198acd0f490c9861f7d07cbb0603dd9f4663e7 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 23 Apr 1996 21:18:19 +0000 Subject: (state_shadows): If a process has no parent don't show various process attributes (that are likely to be noise). --- libps/spec.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libps') diff --git a/libps/spec.c b/libps/spec.c index 527944b8..d4578700 100644 --- a/libps/spec.c +++ b/libps/spec.c @@ -599,12 +599,16 @@ struct state_shadow static const struct state_shadow state_shadows[] = { + /* If the process has no parent, it's not a hurd process, and various hurd + process bits are likely to be noise, so turn them off (but leave the + noparent bit on). */ + { PSTAT_STATE_P_NOPARENT, (PSTAT_STATE_P_ATTRS & ~PSTAT_STATE_P_NOPARENT) }, /* Don't show sleeping thread if one is running, or the process is stopped.*/ { PSTAT_STATE_T_RUN | PSTAT_STATE_P_STOP, PSTAT_STATE_T_SLEEP | PSTAT_STATE_T_IDLE | PSTAT_STATE_T_WAIT }, /* Only show the longest sleep. */ - { PSTAT_STATE_T_IDLE, PSTAT_STATE_T_SLEEP | PSTAT_STATE_T_WAIT }, - { PSTAT_STATE_T_SLEEP, PSTAT_STATE_T_WAIT }, + { PSTAT_STATE_T_IDLE, PSTAT_STATE_T_SLEEP | PSTAT_STATE_T_WAIT }, + { PSTAT_STATE_T_SLEEP, PSTAT_STATE_T_WAIT }, /* Turn off the thread stop bits if any thread is not stopped. This is generally reasonable, as threads are often suspended to be frobed; if they're all suspended, then something's odd (probably in the debugger, -- cgit v1.2.3