summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-02-17 23:13:32 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2016-02-18 08:20:03 -0600
commit7503575f1d098e43901836c51426f508e589f867 (patch)
treef72706aaf437145467812bcacaae56a8755ca4d0
parentc716affcefda5ebe48b667448529d8ec44c92c86 (diff)
downloadcygnal-7503575f1d098e43901836c51426f508e589f867.tar.gz
cygnal-7503575f1d098e43901836c51426f508e589f867.tar.bz2
cygnal-7503575f1d098e43901836c51426f508e589f867.zip
cygwin: accept SIGIOT as alias of SIGABRT
winsup/cygwin/ * include/cygwin/signal.h (SIGIOT): Define SIGIOT in terms of SIGABRT. * strsig.cc (struct sigdesc): Ditto. winsup/doc/ * utils.xml (kill): Document SIGIOT. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
-rw-r--r--winsup/cygwin/include/cygwin/signal.h1
-rw-r--r--winsup/cygwin/strsig.cc3
-rw-r--r--winsup/doc/utils.xml1
3 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/include/cygwin/signal.h b/winsup/cygwin/include/cygwin/signal.h
index 04ddb69d7..e876dece0 100644
--- a/winsup/cygwin/include/cygwin/signal.h
+++ b/winsup/cygwin/include/cygwin/signal.h
@@ -358,6 +358,7 @@ struct sigaction
#define SIGILL 4 /* illegal instruction (not reset when caught) */
#define SIGTRAP 5 /* trace trap (not reset when caught) */
#define SIGABRT 6 /* used by abort */
+#define SIGIOT SIGABRT /* synonym for SIGABRT on most systems */
#define SIGEMT 7 /* EMT instruction */
#define SIGFPE 8 /* floating point exception */
#define SIGKILL 9 /* kill (cannot be caught or ignored) */
diff --git a/winsup/cygwin/strsig.cc b/winsup/cygwin/strsig.cc
index 987e13549..bb53e1b19 100644
--- a/winsup/cygwin/strsig.cc
+++ b/winsup/cygwin/strsig.cc
@@ -26,7 +26,8 @@ struct sigdesc
_s(SIGQUIT, "Quit"), /* 3 */ \
_s(SIGILL, "Illegal instruction"), /* 4 */ \
_s(SIGTRAP, "Trace/breakpoint trap"), /* 5 */ \
- _s(SIGABRT, "Aborted"), /* 6 */ \
+ _s2(SIGABRT, "Aborted", /* 6 */ \
+ SIGIOT, "Aborted"), \
_s(SIGEMT, "EMT instruction"), /* 7 */ \
_s(SIGFPE, "Floating point exception"), /* 8 */ \
_s(SIGKILL, "Killed"), /* 9 */ \
diff --git a/winsup/doc/utils.xml b/winsup/doc/utils.xml
index a00384e5f..501d24804 100644
--- a/winsup/doc/utils.xml
+++ b/winsup/doc/utils.xml
@@ -741,6 +741,7 @@ SIGQUIT 3 quit
SIGILL 4 illegal instruction (not reset when caught)
SIGTRAP 5 trace trap (not reset when caught)
SIGABRT 6 used by abort
+SIGIOT 6 another name for SIGABRT
SIGEMT 7 EMT instruction
SIGFPE 8 floating point exception
SIGKILL 9 kill (cannot be caught or ignored)