changeset 27650:2c8fc292ff2c

include SIGKILL in the SIG structure of known signals (bug #57183) * signal-wrappers.c (octave_get_sig_number): Include SIGKILL in the set of known signals.
author Mike Miller <mtmiller@octave.org>
date Wed, 06 Nov 2019 18:18:51 -0800
parents 91d43a00620d
children c9ebcb9050b4
files liboctave/wrappers/signal-wrappers.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/wrappers/signal-wrappers.c	Wed Nov 06 14:34:32 2019 -0500
+++ b/liboctave/wrappers/signal-wrappers.c	Wed Nov 06 18:18:51 2019 -0800
@@ -178,6 +178,13 @@
       return true;
 #endif
     }
+  else if (! strcmp (signame, "SIGKILL"))
+    {
+#if defined (SIGKILL)
+      *signum = SIGKILL;
+      return true;
+#endif
+    }
   else if (! strcmp (signame, "SIGLOST"))
     {
 #if defined (SIGLOST)