summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-10-06 22:43:17 +0000
committerMiles Bader <miles@gnu.org>1996-10-06 22:43:17 +0000
commitea155cab3f8ee65d7c2b5424e2353137ffaeeff1 (patch)
treece2d7bfafa605ad3a855edb3bc814ff33cbe650b /libps
parent09ff5dec6fade211717f2356114922fb655e1a48 (diff)
(ps_emit_wait): Correct mapping of init ports.
Diffstat (limited to 'libps')
-rw-r--r--libps/spec.c8
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. */