diff options
author | peter <peter@FreeBSD.org> | 1996-01-01 17:08:17 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-01-01 17:08:17 +0000 |
commit | 09bad61c4ca4ebe784865f2aaec94c136397579e (patch) | |
tree | 7e21756c841eef6346b259785b4791d77edbbb5b /lib/libkvm | |
parent | b8347dacd23c8f9fdf9e10d40808f826564e3941 (diff) | |
download | FreeBSD-src-09bad61c4ca4ebe784865f2aaec94c136397579e.zip FreeBSD-src-09bad61c4ca4ebe784865f2aaec94c136397579e.tar.gz |
Extract the login name when doing a ps on a dead kernel.
Diffstat (limited to 'lib/libkvm')
-rw-r--r-- | lib/libkvm/kvm_proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index b6e263d..c26e680 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -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, |