summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_proc.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-01-05 17:18:59 +0000
committerjhb <jhb@FreeBSD.org>2002-01-05 17:18:59 +0000
commitb8765de1bf5d6f4c302e81549d66461ac86621ce (patch)
tree8f8366cff49603a49f2d095c2f7a8824e32b0113 /sys/kern/kern_proc.c
parent49cfbeab2d51f663549f1c30b5d32c4f269bcc34 (diff)
downloadFreeBSD-src-b8765de1bf5d6f4c302e81549d66461ac86621ce.zip
FreeBSD-src-b8765de1bf5d6f4c302e81549d66461ac86621ce.tar.gz
Fix a bug where the mutex name wasn't always displayed for processes in
SMTX in utils such as ps and top. The KI_CTTY flag was assigned to kinfo_proc->ki_kiflag rather than or'd into the flag, thus clobbering any flags set earlier, including KI_MTXBLOCK. Prodding by: peter
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r--sys/kern/kern_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index ad1a940..3626bcd 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -559,7 +559,7 @@ fill_kinfo_proc(p, kp)
strncpy(kp->ki_login, sp->s_login,
sizeof(kp->ki_login) - 1);
if (sp->s_ttyvp)
- kp->ki_kiflag = KI_CTTY;
+ kp->ki_kiflag |= KI_CTTY;
if (SESS_LEADER(p))
kp->ki_kiflag |= KI_SLEADER;
}
OpenPOWER on IntegriCloud