summaryrefslogtreecommitdiff
path: root/bin/ps
diff options
context:
space:
mode:
authorRob Pierce <rob@cvs.openbsd.org>2022-02-14 18:09:09 +0000
committerRob Pierce <rob@cvs.openbsd.org>2022-02-14 18:09:09 +0000
commit68d8a2da06c646cc88be7f237fb6e6ea567290f6 (patch)
treec157744a0b9e97da33e08b8d142136727e76861d /bin/ps
parent95af53cda74250bbba9723f0810115ca7d062d8e (diff)
Revert change to ps for displaying chrooted process.
Ok deraadt
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/print.c4
-rw-r--r--bin/ps/ps.16
2 files changed, 3 insertions, 7 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 4e49a7fc3c6..7b54ae7d13d 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print.c,v 1.80 2022/02/07 22:57:47 rob Exp $ */
+/* $OpenBSD: print.c,v 1.81 2022/02/14 18:09:08 rob Exp $ */
/* $NetBSD: print.c,v 1.27 1995/09/29 21:58:12 cgd Exp $ */
/*-
@@ -289,8 +289,6 @@ printstate(const struct kinfo_proc *kp, VARENT *ve)
else
*cp++ = 'u';
}
- if (kp->p_eflag & EPROC_CHROOT)
- *cp++ = 'c';
*cp = '\0';
if (state == 'R' && kp->p_cpuid != KI_NOCPU) {
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index 55a6e9f3d70..4ada43512a4 100644
--- a/bin/ps/ps.1
+++ b/bin/ps/ps.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ps.1,v 1.122 2022/02/07 22:57:47 rob Exp $
+.\" $OpenBSD: ps.1,v 1.123 2022/02/14 18:09:08 rob Exp $
.\" $NetBSD: ps.1,v 1.16 1996/03/21 01:36:28 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
@@ -30,7 +30,7 @@
.\"
.\" @(#)ps.1 8.3 (Berkeley) 4/18/94
.\"
-.Dd $Mdocdate: February 7 2022 $
+.Dd $Mdocdate: February 14 2022 $
.Dt PS 1
.Os
.Sh NAME
@@ -451,8 +451,6 @@ swapped.
.\" for example,
.\" .Xr lisp 1
.\" in a garbage collect).
-.It c
-The process is chrooted.
.It E
The process is trying to exit.
.It K