]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 251637:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 21 Jun 2013 19:30:32 +0000 (19:30 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 21 Jun 2013 19:30:32 +0000 (19:30 +0000)
commit183dedfb90292926cf80c9ddd4b89d5e896736ba
tree189d8956f2a36b87aef13e317b305d1c644b8467
parentdcf5de797224587d64fe5228568bb0d6fa97c26e
MFC 251637:
Borrow the algorithm from kvm_getprocs() to fix procstat(1) to handle the
case where the process tables grows in between the calls to fetch the size
and fetch the table.

Note that this is not a true MFC as the libprocstat library doesn't exist
in 8.x and the relevant code is in the procstat binary instead.

git-svn-id: svn://svn.freebsd.org/base/stable/8@252066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/procstat/procstat.c