From fc45d5a2b70962c3125fa7bda4e1d0f88cb67939 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 9 Apr 2015 11:25:15 -0600 Subject: [PATCH] SIG_HOLD is not yet implemented --- include/signal.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/include/signal.h b/include/signal.h index 59baf16a55..8ef4d5f6a4 100644 --- a/include/signal.h +++ b/include/signal.h @@ -165,17 +165,22 @@ #define SIGEV_NONE 0 /* No notification desired */ #define SIGEV_SIGNAL 1 /* Notify via signal */ -/* Special values of of sa_handler used by sigaction and sigset. There are all - * treated like NULL for now. +/* Special values of of sa_handler used by sigaction and sigset. They are all + * treated like NULL for now. This is okay for SIG_DFL and SIG_IGN because + * in NuttX, the default action for all signals is to ignore them. * - * REVISIT: Need to distinguish the value of SIG_HOLD. It is need in the - * implementation of sigset(). + * REVISIT: Need to distinguish the value of SIG_HOLD. It is needed in the + * implementation of sigset() but would need to be recognized in all signal + * functions that deal with signal disposition. */ #define SIG_ERR ((CODE void*)-1) #define SIG_DFL ((CODE void*)0) #define SIG_IGN ((CODE void*)0) -#define SIG_HOLD ((CODE void*)0) + +#if 0 /* Not yet supported */ +# define SIG_HOLD ((CODE void*)0) +#endif /******************************************************************************** * Global Type Declarations