summaryrefslogtreecommitdiff
path: root/sys/kern/kern_proc.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-09-22 17:28:35 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-09-22 17:28:35 +0000
commitf8caf955c3775ce75e26a7247df8959d1c2230cc (patch)
treee3eb5e1bdb728245e5fa1f77bb5b3b94e2ae6980 /sys/kern/kern_proc.c
parent9a50a70472a4c05f1f8bfd17e5a13abd50327b78 (diff)
Stop merging the per-thread and per-process flags when reporting
them via sysctl(KERN_PROC). In struct kinfo_proc the per-process flags move to p_psflags, leaving the per-thread flags in p_flags. Flag descriptions in ps(1) updated to be less obtuse. discussed with matthew@ some time ago; ok jca@, manpage bits ok jmc@
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r--sys/kern/kern_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index 1258b937742..86bb22c4dec 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_proc.c,v 1.52 2013/08/12 20:43:28 bluhm Exp $ */
+/* $OpenBSD: kern_proc.c,v 1.53 2013/09/22 17:28:34 guenther Exp $ */
/* $NetBSD: kern_proc.c,v 1.14 1996/02/09 18:59:41 christos Exp $ */
/*
@@ -397,7 +397,7 @@ proc_printit(struct proc *p, const char *modif,
(*pr)("PROC (%s) pid=%d stat=%s\n", p->p_comm, p->p_pid, pst);
(*pr)(" flags process=%b proc=%b\n",
- p->p_p->ps_flags, P_BITS, p->p_flag, P_BITS);
+ p->p_p->ps_flags, PS_BITS, p->p_flag, P_BITS);
(*pr)(" pri=%u, usrpri=%u, nice=%d\n",
p->p_priority, p->p_usrpri, p->p_p->ps_nice);
(*pr)(" forw=%p, list=%p,%p\n",