Fix rstat: symbol not in namelist from netstat
Load kvm symbols earlier to prevent rstat: symbol not in namelist error when running netstat -rs. Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> MFC after: 1 week Sponsored by: Multiplay
This commit is contained in:
parent
f0dac7b3f3
commit
5d693684b9
@ -427,6 +427,9 @@ main(int argc, char *argv[])
|
|||||||
if (xflag && Tflag)
|
if (xflag && Tflag)
|
||||||
xo_errx(1, "-x and -T are incompatible, pick one.");
|
xo_errx(1, "-x and -T are incompatible, pick one.");
|
||||||
|
|
||||||
|
/* Load all necessary kvm symbols */
|
||||||
|
kresolve_list(nl);
|
||||||
|
|
||||||
if (Bflag) {
|
if (Bflag) {
|
||||||
if (!live)
|
if (!live)
|
||||||
usage();
|
usage();
|
||||||
@ -507,9 +510,6 @@ main(int argc, char *argv[])
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load all necessary kvm symbols */
|
|
||||||
kresolve_list(nl);
|
|
||||||
|
|
||||||
if (tp) {
|
if (tp) {
|
||||||
xo_open_container("statistics");
|
xo_open_container("statistics");
|
||||||
printproto(tp, tp->pr_name, &first);
|
printproto(tp, tp->pr_name, &first);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user