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
49cfbeab2d
commit
b8765de1bf
@ -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