Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jul 2009 15:09:09 GMT
From:      Gabor Pali <pgj@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 165593 for review
Message-ID:  <200907041509.n64F99br086830@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=165593

Change 165593 by pgj@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907041509.n64F99br086830>