Extract the login name when doing a ps on a dead kernel.

This commit is contained in:
Peter Wemm 1996-01-01 17:08:17 +00:00
parent a1d2540fa0
commit b8321444f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13156

View File

@ -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,