kernal message :application bug: app_name(20791) has SIGCHLD set to SIG_IGN but ca...
we have a problem of defuncts.
to solv that problem, we used the following code:
int i;
struct sigaction act;
act.sa_handler = NULL;
act.sa_sigaction = SIG_IGN;
for (i=0;i<_SIGSET_NWORDS ;i++ )
{
act.sa_mask.__val[i] = 0;
}
act.sa_flags = 0;
if (!nocldwait_installed) {
sigaction(SIGCHLD, &act, &oact);
nocldwait_installed = 1;
} else {
sigaction(SIGCHLD, &act, NULL);
}
now, in RadHat advanced server 3, we get the following message:
kernel: application bug: ong_agent(20791) has SIGCHLD set to SIG_IGN but calls wait().
kernel: (see the NOTES section of 'man 2 wait'). Workaround activated.
how can we change the code, so that message will not appear?
other details: we are working with TCL, the code change is within the tcl code.
|