mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 14:39:37 +00:00
Extract the login name when doing a ps on a dead kernel.
This commit is contained in:
parent
a1d2540fa0
commit
b8321444f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13156
@ -159,6 +159,8 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
|
||||
pgrp.pg_session);
|
||||
return (-1);
|
||||
}
|
||||
(void)memcpy(eproc.e_login, sess.s_login,
|
||||
sizeof(eproc.e_login));
|
||||
if ((proc.p_flag & P_CONTROLT) && sess.s_ttyp != NULL) {
|
||||
if (KREAD(kd, (u_long)sess.s_ttyp, &tty)) {
|
||||
_kvm_err(kd, kd->program,
|
||||
|
Loading…
Reference in New Issue
Block a user