diff options
author | Miles Bader <miles@gnu.org> | 1996-04-23 21:18:19 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-04-23 21:18:19 +0000 |
commit | 46198acd0f490c9861f7d07cbb0603dd9f4663e7 (patch) | |
tree | a01930acdb78ab96dc26d93958bac713aa77ece4 /libps/spec.c | |
parent | 976b52bcdc420e47e27eeba24fe6361766fcf26a (diff) |
(state_shadows): If a process has no parent don't show various process
attributes (that are likely to be noise).
Diffstat (limited to 'libps/spec.c')
-rw-r--r-- | libps/spec.c | 8 |
1 files changed, 6 insertions, 2 deletions
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, |