On Thursday 07 February 2013 10:52:52 Per Jessen wrote:
I've got a new daemon that needs to run on openSUSE 12.2 and 11.0. There is no problem on the former, but on 11.0 I run into $SUBJ every now and then. Not frequently, but it's a problem.
Pseudo-code:
fork() the child closes stdin, prepares to stdout write to a pipe getpwnam() so I can setuid()
execv().
Why would the getpwnam() call result in too many open files??
Well, getpwnam() does open files, if nothing else a socket to nscd, if that is running, /etc/passwd or a connection to whatever name service is in use if it isn't if the system wide limit is reached it will result in an error Anders -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-programming+owner@opensuse.org