|
From: Dimitri Papadopoulos-O. <pap...@sh...> - 2003-11-14 17:18:02
|
Hi, >>==14433== Warning: attempt to set SIGKILL handler in __NR_sigaction. >>==14433== Warning: attempt to set SIGSTOP handler in __NR_sigaction. >>[...] >> >>What do they mean exactly? >>Should these warnings be ignored? >>Should the program be fixed? > > > They're almost not worth warning about. SIGKILL and SIGSTOP cannot be > caught or handled in any way, so trying to set them to anything other > than SIG_DFL with sigaction is an error - but a very minor one with no > side-effects. This warning is common with code which does something > like: > > for(sig = 1; sig < NSIG; sig++) > sigaction(sig, &sa, NULL); > > So ignore it unless you're being pedantic. I understand now. Thanks for explaining this. Maybe the wording can be improved, so that "normal" programers can understand it. For example by changing from: attempt to set SIGKILL handler in __NR_sigaction. to: attempt to set a handler for SIGKILL signal. Also maybe this can be added to the FAQ. If even 'ls' emits such warnings, I guess many other programs will emit them too. -- Dimitri |