This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new a8f4a89221 signal: add SIGSYS
a8f4a89221 is described below

commit a8f4a89221a3a6401eea245f666d24f29b62b2f9
Author: Petro Karashchenko <petro.karashche...@gmail.com>
AuthorDate: Mon Mar 27 17:37:53 2023 +0300

    signal: add SIGSYS
    
    Signed-off-by: Petro Karashchenko <petro.karashche...@gmail.com>
---
 include/signal.h           | 2 ++
 sched/Kconfig              | 4 ++--
 sched/signal/sig_default.c | 1 +
 3 files changed, 5 insertions(+), 2 deletions(-)

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 },

Reply via email to