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