PERFORCE change 165593 for review
Gabor Pali
pgj at FreeBSD.org
Sat Jul 4 15:09:11 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165593
Change 165593 by pgj at petymeg-current on 2009/07/04 15:08:30
Do not use kread() at all when doing live monitoring. This is
required to run a 32-bit netstat on top of a 64-bit kernel,
otherwise it will result a "no namelist" error.
Affected files ...
.. //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/main.c#10 edit
Differences ...
==== //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/main.c#10 (text+ko) ====
@@ -523,7 +523,8 @@
* used for the queries, which is slower.
*/
#endif
- kread(0, NULL, 0);
+ if (!live)
+ kread(0, NULL, 0);
if (iflag && !sflag) {
intpr(interval, nl[N_IFNET].n_value, NULL);
exit(0);
More information about the p4-projects
mailing list