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)
This commit is contained in:
Remko Lodder 2008-05-14 00:22:57 +00:00
parent d7022add17
commit bc42e6c43f

View File

@ -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);
}
}