changeset 14154:f15007a6c642 stable

use gnulib::raise * sighandlers.cc (my_friendly_exit): Use gnulib::raise. * configure.ac: Don't check for kill.
author John W. Eaton <jwe@octave.org>
date Fri, 06 Jan 2012 10:25:00 -0500
parents 06aa17228706
children 583d3d6f6fde
files configure.ac src/sighandlers.cc
diffstat 2 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Fri Jan 06 09:41:16 2012 -0500
+++ b/configure.ac	Fri Jan 06 10:25:00 2012 -0500
@@ -1626,7 +1626,7 @@
 AC_CHECK_FUNCS(basename canonicalize_file_name \
   chmod dup2 endgrent endpwent execvp expm1 expm1f fork \
   getegid geteuid getgid getgrent getgrgid getgrnam getpgrp getpid \
-  getppid getpwent getpwuid getuid getwd _kbhit kill \
+  getppid getpwent getpwuid getuid getwd _kbhit \
   lgamma lgammaf lgamma_r lgammaf_r localtime_r log1p log1pf \
   mkstemp pipe putenv \
   realpath resolvepath rindex roundl select setgrent setlocale \
--- a/src/sighandlers.cc	Fri Jan 06 09:41:16 2012 -0500
+++ b/src/sighandlers.cc	Fri Jan 06 10:25:00 2012 -0500
@@ -185,15 +185,8 @@
         {
           octave_set_signal_handler (sig_number, SIG_DFL);
 
-#if defined (HAVE_RAISE)
-          raise (sig_number);
-#elif defined (HAVE_KILL)
-          kill (getpid (), sig_number);
-#else
-          exit (1);
-#endif
+          gnulib::raise (sig_number);
         }
-
     }
 }