summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorremko <remko@FreeBSD.org>2008-05-14 00:22:57 +0000
committerremko <remko@FreeBSD.org>2008-05-14 00:22:57 +0000
commit6b54f6342e0134ee6b79b96bc46133ead7c54936 (patch)
tree913f565efd0f86ea9cfa61a7d093b3fc930831b7 /usr.sbin/pstat
parent232bfc7d5f0b6182f2e42516c028b48725e894df (diff)
downloadFreeBSD-src-6b54f6342e0134ee6b79b96bc46133ead7c54936.zip
FreeBSD-src-6b54f6342e0134ee6b79b96bc46133ead7c54936.tar.gz
Fix pstat behaviour when using coredumps. The reference to tp was
incorrect and should have been poining to &tty, tp is a virtual address from the coredump, while we should obtain the address through the tty struct. Approved by: imp (mentor, implicit trivial changes) MFC after: 1 week Submitted by: Ed Schouten (ed at 80836 dot nl)
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 1516365..b3e55a8 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -246,7 +246,7 @@ ttymode_kvm(void)
XT_COPY(olowat);
#undef XT_COPY
ttyprt(&xt);
- tp = TAILQ_NEXT(tp, t_list);
+ tp = TAILQ_NEXT(&tty, t_list);
}
}
OpenPOWER on IntegriCloud