diff --git a/include/signal.h b/include/signal.h index fe20cede39..7b11e3b5ac 100644 --- a/include/signal.h +++ b/include/signal.h @@ -167,6 +167,8 @@ #define SIGIO SIGPOLL +#define SIGSYS 31 + /* sigprocmask() "how" definitions. Only one of the following can be specified: */ #define SIG_BLOCK 1 /* Block the given signals */ diff --git a/sched/Kconfig b/sched/Kconfig index 305d51d1c1..7ea9b8bee0 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -1372,8 +1372,8 @@ config SIG_SIGKILL_ACTION default y ---help--- Enable the default action for SIGHUP SIGILL SIGTRAP SIGABRT SIGBUS - SIGFPE SIGINT SIGKILL SIGSEGV SIGQUIT SIGTERM SIGXCPU AND - SIGXFSZ (terminate the task). + SIGFPE SIGINT SIGKILL SIGSEGV SIGQUIT SIGTERM SIGXCPU SIGXFSZ and + SIGSYS (terminate the task). config SIG_SIGUSR1_ACTION bool "SIGUSR1" diff --git a/sched/signal/sig_default.c b/sched/signal/sig_default.c index baac89a1c5..f49c131f4d 100644 --- a/sched/signal/sig_default.c +++ b/sched/signal/sig_default.c @@ -119,6 +119,7 @@ static const struct nxsig_defaction_s g_defactions[] = { SIGTERM, 0, nxsig_abnormal_termination }, { SIGXCPU, 0, nxsig_abnormal_termination }, { SIGXFSZ, 0, nxsig_abnormal_termination }, + { SIGSYS, 0, nxsig_abnormal_termination }, #endif #ifdef CONFIG_SIG_SIGUSR1_ACTION { SIGUSR1, 0, nxsig_abnormal_termination },