mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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
This commit is contained in:
parent
42b841a9c9
commit
b8e6bf1ed6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88927
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user