[Pkg-shadow-devel] [PATCH] nscd: ignore exit 1 code
Nicolas François
nicolas.francois at centraliens.net
Fri Feb 17 21:08:43 UTC 2012
Hi Mike,
On Sun, Feb 12, 2012 at 11:45:40PM -0500, vapier at gentoo.org wrote:
> If nscd is installed but not in use, then running `nscd -i` will exit(1).
> We shouldn't warn in this case since this is not abnormal behavior.
I checked the nscd (from glibc) source.
This error status is not used exclusively when nscd is not in use.
This means other errors would not be caught.
Do you know any way to check if nscd is in use?
One solution may be to check the existence of the PID file or socket.
Another solution could be to document that nscd cache flushing is only
performed as best effort, and ignore all failures from nscd (not only
return code 1).
Best Regards,
--
Nekral
More information about the Pkg-shadow-devel
mailing list