changeset 16706:736dca8371ee

include more signals in SIG function (bug #39089) * siglist.c (init_signals): Correct SIGPHONE case to use SIGPHONE index rather than SIGWIND. Add SIGSTKFLT and SIGUNUSED cases. * sighandlers.cc (make_sig_struct): Move SIGIO to alphabetical order. Assign SIGKILL, SIGSTKFLT, and SIGUNUSED cases.
author Daniel J Sebald <daniel.sebald@ieee.org>
date Thu, 30 May 2013 14:19:59 -0400
parents 122d3f62e179
children 4c11e9bcb796
files libinterp/interp-core/siglist.c libinterp/interpfcn/sighandlers.cc
diffstat 2 files changed, 23 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/interp-core/siglist.c	Thu May 30 14:12:22 2013 -0400
+++ b/libinterp/interp-core/siglist.c	Thu May 30 14:19:59 2013 -0400
@@ -122,7 +122,7 @@
       sys_siglist[SIGMSG] = "Monitor mode data available";
 # endif
 # ifdef SIGPHONE
-      sys_siglist[SIGWIND] = "SIGPHONE";
+      sys_siglist[SIGPHONE] = "SIGPHONE";
 # endif
 # ifdef SIGPIPE
       sys_siglist[SIGPIPE] = "Broken pipe";
@@ -154,6 +154,9 @@
 # ifdef SIGSOUND
       sys_siglist[SIGSOUND] = "Sound completed";
 # endif
+# ifdef SIGSTKFLT
+      sys_siglist[SIGSTKFLT] = "Stack fault";
+# endif
 # ifdef SIGSTOP
       sys_siglist[SIGSTOP] = "Stopped (signal)";
 # endif
@@ -181,6 +184,9 @@
 # ifdef SIGTTOU
       sys_siglist[SIGTTOU] = "Stopped (tty output)";
 # endif
+# ifdef SIGUNUSED
+      sys_siglist[SIGUNUSED] = "SIGUNUSED";
+# endif
 # ifdef SIGURG
       sys_siglist[SIGURG] = "Urgent I/O condition";
 # endif
--- a/libinterp/interpfcn/sighandlers.cc	Thu May 30 14:12:22 2013 -0400
+++ b/libinterp/interpfcn/sighandlers.cc	Thu May 30 14:19:59 2013 -0400
@@ -630,10 +630,18 @@
   m.assign ("INT", SIGINT);
 #endif
 
+#ifdef SIGIO
+  m.assign ("IO", SIGIO);
+#endif
+
 #ifdef SIGIOT
   m.assign ("IOT", SIGIOT);
 #endif
 
+#ifdef SIGKILL
+  m.assign ("KILL", SIGKILL);
+#endif
+
 #ifdef SIGLOST
   m.assign ("LOST", SIGLOST);
 #endif
@@ -662,6 +670,10 @@
   m.assign ("SEGV", SIGSEGV);
 #endif
 
+#ifdef SIGSTKFLT
+  m.assign ("STKFLT", SIGSTKFLT);
+#endif
+
 #ifdef SIGSTOP
   m.assign ("STOP", SIGSTOP);
 #endif
@@ -690,6 +702,10 @@
   m.assign ("TTOU", SIGTTOU);
 #endif
 
+#ifdef SIGUNUSED
+  m.assign ("UNUSED", SIGUNUSED);
+#endif
+
 #ifdef SIGURG
   m.assign ("URG", SIGURG);
 #endif
@@ -706,10 +722,6 @@
   m.assign ("VTALRM", SIGVTALRM);
 #endif
 
-#ifdef SIGIO
-  m.assign ("IO", SIGIO);
-#endif
-
 #ifdef SIGWINCH
   m.assign ("WINCH", SIGWINCH);
 #endif