sched/signal: Add logic and an interface to determin if a signal can be caught or ignored. sigaction now correctly returns EINVAL on any attempt to catch or ignore such signals (only SIGKILL for now and only if CONFIG_SIG_DEFAULT=y).

This commit is contained in:
Gregory Nutt
2018-08-28 12:39:03 -06:00
parent 0756cf66ed
commit dcb3d4b050
4 changed files with 71 additions and 12 deletions
+4 -4
View File
@@ -141,10 +141,10 @@ config TTY_SIGINT
devices. May be enabled for other serial devices using the ISIG bit
in the Termios c_lflag.
REVISIT: This implementation is non-standard. The c_lflag ISIG bit
normally enables/disables INTR, QUIT, SUSP, and DSUSP character
processing. The relationship between these names, standard signals,
and typical key presses are as follows:
REVISIT: This implementation is compliant but incomplete. The
c_lflag ISIG bit normally enables/disables INTR, QUIT, SUSP, and
DSUSP character processing. The relationship between these names,
standard signals, and typical key presses are as follows:
INTR SIGINT Ctrl-C ETX(0x03) Interrupt
KILL SIGKILL Ctrl-U NAK(0x15) Kill