diff options
author | dg <dg@FreeBSD.org> | 1994-10-18 04:27:46 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-10-18 04:27:46 +0000 |
commit | 56d17bcedee6d323e22d7de8670296390499c6b5 (patch) | |
tree | 38f37cc643fae82cd6298742bfbaca614c536411 /bin/ps | |
parent | 57a3f6cf3026152974ff031905918f0583690dad (diff) | |
download | FreeBSD-src-56d17bcedee6d323e22d7de8670296390499c6b5.zip FreeBSD-src-56d17bcedee6d323e22d7de8670296390499c6b5.tar.gz |
Use kvm_uread instead of kvm_read to access the upages.
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/ps.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 7effb97..85a03e4 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ps.c,v 1.3 1994/10/02 08:19:13 davidg Exp $ + * $Id: ps.c,v 1.4 1994/10/02 08:33:31 davidg Exp $ */ #ifndef lint @@ -381,9 +381,10 @@ saveuser(ki) { struct pstats pstats; struct usave *usp; + struct user *u_addr = (struct user *)USRSTACK; usp = &ki->ki_u; - if (kvm_read(kd, (u_long)&KI_PROC(ki)->p_addr->u_stats, + if (kvm_uread(kd, KI_PROC(ki), &u_addr->u_stats, (char *)&pstats, sizeof(pstats)) == sizeof(pstats)) { /* * The u-area might be swapped out, and we can't get |