changeset 4092:01f46b36e11f

[project @ 2002-10-07 16:13:22 by jwe]
author jwe
date Mon, 07 Oct 2002 16:13:22 +0000
parents 575507e27b8b
children 5a82e874999b
files ChangeLog configure.in src/ChangeLog src/sighandlers.cc
diffstat 4 files changed, 19 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Oct 06 20:50:15 2002 +0000
+++ b/ChangeLog	Mon Oct 07 16:13:22 2002 +0000
@@ -1,3 +1,7 @@
+2002-10-07  Paul Kienzle <pkienzle@users.sf.net>
+
+	* configure.in: Check for raise.
+
 2002-10-02  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* aclocal.m4 (OCTAVE_PROG_SED): New macro, adapted from autoconf
--- a/configure.in	Sun Oct 06 20:50:15 2002 +0000
+++ b/configure.in	Mon Oct 07 16:13:22 2002 +0000
@@ -22,7 +22,7 @@
 ### 02111-1307, USA. 
 
 AC_INIT
-AC_REVISION($Revision: 1.371 $)
+AC_REVISION($Revision: 1.372 $)
 AC_PREREQ(2.52)
 AC_CONFIG_SRCDIR([src/octave.cc])
 AC_CONFIG_HEADER(config.h)
@@ -869,8 +869,8 @@
 AC_CHECK_FUNCS(atexit bcopy bzero dup2 endgrent endpwent execvp \
   fcntl fork getcwd getegid geteuid getgid getgrent getgrgid \
   getgrnam getpgrp getpid getppid getpwent \
-  getpwuid gettimeofday getuid getwd _kbhit link localtime_r lstat \
-  memmove mkdir mkfifo on_exit pipe poll putenv readlink rename \
+  getpwuid gettimeofday getuid getwd _kbhit kill link localtime_r lstat \
+  memmove mkdir mkfifo on_exit pipe poll putenv raise readlink rename \
   rindex rmdir select setgrent setpwent setvbuf sigaction sigpending \
   sigprocmask sigsuspend stat strcasecmp strdup strerror strftime \
   stricmp strncasecmp strnicmp strptime symlink tempnam umask unlink \
--- a/src/ChangeLog	Sun Oct 06 20:50:15 2002 +0000
+++ b/src/ChangeLog	Mon Oct 07 16:13:22 2002 +0000
@@ -1,3 +1,8 @@
+2002-10-07  Paul Kienzle <pkienzle@users.sf.net>
+
+	* sighandlers.cc (my_friendly_exit): If kill is unavailable, use
+	raise.
+
 2002-10-06  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* sysdep.cc (CYGWIN_init): New function.
--- a/src/sighandlers.cc	Sun Oct 06 20:50:15 2002 +0000
+++ b/src/sighandlers.cc	Mon Oct 07 16:13:22 2002 +0000
@@ -139,8 +139,15 @@
 	{
 	  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
 	}
+
     }
 }