Date: Sat, 4 Jul 2009 17:48:03 GMT From: Gabor Pali <pgj@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 165600 for review Message-ID: <200907041748.n64Hm3lA010133@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=165600 Change 165600 by pgj@petymeg-current on 2009/07/04 17:47:41 Further fixes regarding kread() Affected files ... .. //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/main.c#12 edit Differences ... ==== //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/main.c#12 (text+ko) ==== @@ -582,8 +582,11 @@ for (tp = netgraphprotox; tp->pr_name; tp++) printproto(tp, tp->pr_name); #endif /* NETGRAPH */ - if (af == AF_UNIX && !sflag) + if (af == AF_UNIX && !sflag) { + if (!live) + kread(0, NULL, 0); unixpr(kvmd); + } if (af == AF_UNSPEC || af == AF_INET #ifdef INET6 || af == AF_INET6 @@ -595,8 +598,10 @@ exit(-1); } st_flags = 0; - if (!live) + if (!live) { + kread(0, NULL, 0); st_flags |= NETSTAT_SOCKET_KVM; + } if (aflag) st_flags |= NETSTAT_SOCKET_ALL; /* @@ -710,6 +715,8 @@ case IPPROTO_IGMP: case IPPROTO_PIM: case IPPROTO_ICMPV6: + if (!live) + kread(0, NULL, 0); inetpr(kvmd, (af == PF_INET6) ? af : PF_INET, tp->pr_protocol); break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907041748.n64Hm3lA010133>