PERFORCE change 182070 for review
Aman Jassal
aman at FreeBSD.org
Sun Aug 8 09:41:22 UTC 2010
http://p4web.freebsd.org/@@182070?ac=10
Change 182070 by aman at 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);
More information about the p4-projects
mailing list