System.Posix.User.getAllUserEntries can be called only once
are there special constraints why the function
of the unix package can be called only once? Beginning with the second
call, it only returns the empty list. Thus, this function cannot be
used for a long running process which needs to query the user database
from time to time, again and again.
Re: System.Posix.User.getAllUserEntries can be called only once
On Mon, Jul 16, 2007 at 01:49:31PM +0200, Sascha Böhme wrote:
> are there special constraints why the function
> of the unix package can be called only once?
It's a bug, fixed in the HEAD.
To do it in 6.6.1 you'd have to call C's setpwent and endpwent yourself,
before and after calling getAllUserEntries.