svn commit: r217957 - stable/7/usr.sbin/pstat
Remko Lodder
remko at FreeBSD.org
Thu Jan 27 19:08:02 UTC 2011
Author: remko
Date: Thu Jan 27 19:08:01 2011
New Revision: 217957
URL: http://svn.freebsd.org/changeset/base/217957
Log:
MFC r178987
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)
PR: 138131
Modified:
stable/7/usr.sbin/pstat/pstat.c
Directory Properties:
stable/7/usr.sbin/pstat/ (props changed)
Modified: stable/7/usr.sbin/pstat/pstat.c
==============================================================================
--- stable/7/usr.sbin/pstat/pstat.c Thu Jan 27 19:05:43 2011 (r217956)
+++ stable/7/usr.sbin/pstat/pstat.c Thu Jan 27 19:08:01 2011 (r217957)
@@ -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);
}
}
More information about the svn-src-stable-7
mailing list