On Mon, 15 Oct 2007, Christopher Allen Wing wrote:
In other words, getpwnam() triggers the caching of both ID -> username and username -> ID, and subsequent calls to getpwuid() will return the most recently cached value instead of the "first entry in /etc/passwd" like you assumed. (the nscd daemon is what does the actual caching here)
Hmm, could it be that in the OP case, where the results appear only under load, there's an issue of thread-safety ? i.e. using getpwuid instead of getpwuid_r. I know that this doesn't bring a solution, maybe only an explanation.
-- Bogdan Costescu IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868 E-mail: [EMAIL PROTECTED] _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
