summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-04-09 11:25:15 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-04-09 11:25:15 -0600
commite7e9460e4b2dfbc4cff4f71ed652ad39796ca8a7 (patch)
treee7ea48a227dda9d58a285a3b08fa5b3585a1a87c /nuttx
parent625cfa7876d0def1f222280f06d2f6fde7a9a89f (diff)
downloadpx4-nuttx-e7e9460e4b2dfbc4cff4f71ed652ad39796ca8a7.tar.gz
px4-nuttx-e7e9460e4b2dfbc4cff4f71ed652ad39796ca8a7.tar.bz2
px4-nuttx-e7e9460e4b2dfbc4cff4f71ed652ad39796ca8a7.zip
SIG_HOLD is not yet implemented
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/include/signal.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/nuttx/include/signal.h b/nuttx/include/signal.h
index 59baf16a5..8ef4d5f6a 100644
--- a/nuttx/include/signal.h
+++ b/nuttx/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