diff options
author | Miles Bader <miles@gnu.org> | 1996-10-06 22:43:17 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-10-06 22:43:17 +0000 |
commit | ea155cab3f8ee65d7c2b5424e2353137ffaeeff1 (patch) | |
tree | ce2d7bfafa605ad3a855edb3bc814ff33cbe650b /libps | |
parent | 09ff5dec6fade211717f2356114922fb655e1a48 (diff) |
(ps_emit_wait): Correct mapping of init ports.
Diffstat (limited to 'libps')
-rw-r--r-- | libps/spec.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libps/spec.c b/libps/spec.c index 62b6dfc2..04aff7f7 100644 --- a/libps/spec.c +++ b/libps/spec.c @@ -724,15 +724,17 @@ ps_emit_wait (struct proc_stat *ps, struct ps_fmt_field *field, /* See if we should give a more useful name for the port. */ if (strcmp (wait, "init#0") == 0) - wait = "cwdir"; /* Current directory */ + wait = "cwd"; /* Current directory */ else if (strcmp (wait, "init#1") == 0) - wait = "crdir"; /* Root directory */ + wait = "root"; /* Root directory */ else if (strcmp (wait, "init#2") == 0) wait = "auth"; /* Auth port */ else if (strcmp (wait, "init#3") == 0) wait = "proc"; /* Proc port */ else if (strcmp (wait, "init#4") == 0) - wait = "bootstrap"; /* Bootstrap port */ + wait = "cttyid"; /* Ctty id port */ + else if (strcmp (wait, "init#5") == 0) + wait = "boot"; /* Bootstrap port */ else /* See if we can shorten the name to fit better. We happen know that all currently returned keys are unique in the first character. */ |