Small patch to fix top in large NIS environments

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <freebsd-current@...>
Date: Wednesday, January 9, 2008 - 1:15 pm

The -u flag to top is supposed to limit uid lookups.  But, it was still
spinning through the entire password database with while (getpwent()).  At
Cisco, which has a fairly large NIS database, this takes forever, and top
never starts.

I filed this bug to address it:
http://www.freebsd.org/cgi/query-pr.cgi?pr=119490

The attached patch fixes it.  This is my first submission, so let me know if
this is the proper order, etc, to post the patches (i.e. file the bug, the
post a fix)

-Dave
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Small patch to fix top in large NIS environments, David Frascone, (Wed Jan 9, 1:15 pm)
Re: Small patch to fix top in large NIS environments, David Frascone, (Wed Jan 9, 6:24 pm)
Re: Small patch to fix top in large NIS environments, Gavin Atkinson, (Wed Jan 9, 2:35 pm)