On Thu, 5 Apr 2018 07:07:06 -0400 (EDT), Wietse Venema stated:

>Bastian Blank:
>> On Wed, Apr 04, 2018 at 08:56:46PM -0400, Wietse Venema wrote:  
>> > That may be so, but why does the lame Linux kernel silently ignore
>> > the kill() call instead of properly returning an error.  
>> 
>> The signal is ignored the same way as if someone had called
>> | signal(SIGFOO, SIG_IGN)  
>
>Postfix code is (while handling SIGTERM)
>
>    sigemptyset(&action.sa_mask);
>    action.sa_flags = 0;
>    action.sa_handler = SIG_DFL;
>    if (sigaction(sig, &action, (struct sigaction *) 0) < 0)
>        msg_fatal("%s: sigaction: %m", myname);
>    if (kill(pid, sig) < 0)
>        msg_fatal("%s: kill myself: %m", myname);
>
>So Linux also ignores sigaction with SIG_DFL without returning an
>error. Undocumented behavior -> Lame.
>
>       Wietse

Well, you could file a bug report; however, they would just ignore it.

-- 
Jerry

Reply via email to