Date: Sun, 8 Aug 2010 09:41:21 GMT From: Aman Jassal <aman@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 182070 for review Message-ID: <201008080941.o789fLdN073566@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@182070?ac=10 Change 182070 by aman@src on 2010/08/08 09:41:15 Fixing the code for iflag, kread() should be called only when performing "non-live" monitoring. Live monitoring should be using sysctl instead, so add a "if (!live)" before the kread() call. There are other parts in the code which require the same fix but we shall do this in an incremental process. Reviewed by: pgj Affected files ... .. //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/main.c#49 edit Differences ... ==== //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/main.c#49 (text+ko) ==== @@ -461,7 +461,8 @@ */ #endif if (iflag && !sflag) { - kread(0, NULL, 0); + if (!live) + kread(0, NULL, 0); session = netstat_session_new(kvmd); intpr(session, interval, NULL); netstat_session_free(session);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008080941.o789fLdN073566>