https://bugzilla.novell.com/show_bug.cgi?id=387202
User walter.haidinger@gmx.at added comment
https://bugzilla.novell.com/show_bug.cgi?id=387202#c57
--- Comment #57 from Walter Haidinger 2008-12-08 06:00:21 MST ---
Nice script but because of comment #54 quite obsolete, isn't it? :-\
No, seriously, if such a wrapper would be implemented in nscd itself _all_ SUSE
users would benefit, even those not capable of writing a wrapper themselves or
even those not be able to find (say being aware of) this bugzilla entry.
Again, this could be quickly released as an nscd update until the real fix
is done (which we're waiting for since when? two years?).
The required patch would only need to do the following (in pseudo-code):
/* signal handler to kill spawned nscd child */
signal(SIGTERM, { kill(child_pid); } );
/* core loop to (re)spawn nscd child */
for (;;) {
child_pid = fork();
if (child_pid == 0) {
nscd_main(); /* run nscd main() */
} else {
wait(); /* wait for nscd child to exit/die */
log("restarting nscd child");
}
}
Would that be too difficult?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.