public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* [PATCH] cygwin: accept SIGIOT as alias of SIGABRT
@ 2016-02-18  5:21 Yaakov Selkowitz
  2016-02-18 10:51 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Yaakov Selkowitz @ 2016-02-18  5:21 UTC (permalink / raw)
  To: cygwin-patches

	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>
---
 winsup/cygwin/include/cygwin/signal.h | 1 +
 winsup/cygwin/strsig.cc               | 3 ++-
 winsup/doc/utils.xml                  | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/include/cygwin/signal.h b/winsup/cygwin/include/cygwin/signal.h
index 04ddb69..e876dec 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 987e135..bb53e1b 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 a00384e..501d248 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)
-- 
2.7.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] cygwin: accept SIGIOT as alias of SIGABRT
  2016-02-18  5:21 [PATCH] cygwin: accept SIGIOT as alias of SIGABRT Yaakov Selkowitz
@ 2016-02-18 10:51 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2016-02-18 10:51 UTC (permalink / raw)
  To: cygwin-patches

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

On Feb 17 23:21, Yaakov Selkowitz wrote:
> 	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>

ACK, please apply.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-18 10:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-18  5:21 [PATCH] cygwin: accept SIGIOT as alias of SIGABRT Yaakov Selkowitz
2016-02-18 10:51 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).