changeset 10003:655ec8b9fbde

Use 'raise'.
author Bruno Haible <bruno@clisp.org>
date Tue, 29 Apr 2008 03:04:35 +0200
parents dec3edb2c894
children 9be206f3aa64
files ChangeLog lib/c-stack.c modules/c-stack
diffstat 3 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+	* lib/c-stack.c (die): Use raise.
+	* modules/c-stack (Depends-on): Add raise.
+
 2008-04-28  Bruno Haible  <bruno@clisp.org>
 
 	Expect rpmatch to be declared.
--- a/lib/c-stack.c
+++ b/lib/c-stack.c
@@ -119,7 +119,7 @@
   write (STDERR_FILENO, "\n", 1);
   if (! signo)
     _exit (exit_failure);
-  kill (getpid (), signo);
+  raise (signo);
   abort ();
 }
 
--- a/modules/c-stack
+++ b/modules/c-stack
@@ -10,6 +10,7 @@
 gettext-h
 exitfail
 unistd
+raise
 
 configure.ac:
 gl_C_STACK