Use 'raise'.
authorBruno Haible <bruno@clisp.org>
Tue, 29 Apr 2008 01:04:35 +0000 (03:04 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 29 Apr 2008 01:04:35 +0000 (03:04 +0200)
ChangeLog
lib/c-stack.c
modules/c-stack

index 4c9e4a1..c2fdaa6 100644 (file)
--- 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.
index 81be7cf..a7ebafa 100644 (file)
@@ -119,7 +119,7 @@ die (int signo)
   write (STDERR_FILENO, "\n", 1);
   if (! signo)
     _exit (exit_failure);
-  kill (getpid (), signo);
+  raise (signo);
   abort ();
 }
 
index 926aaf7..e87dd1a 100644 (file)
@@ -10,6 +10,7 @@ Depends-on:
 gettext-h
 exitfail
 unistd
+raise
 
 configure.ac:
 gl_C_STACK