From a52746a724eb0f5446d80015186e85cbb97fedef Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 29 Apr 2008 03:04:35 +0200 Subject: [PATCH] Use 'raise'. --- ChangeLog | 5 +++++ lib/c-stack.c | 2 +- modules/c-stack | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4c9e4a120..c2fdaa6ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-20 Bruno Haible + + * lib/c-stack.c (die): Use raise. + * modules/c-stack (Depends-on): Add raise. + 2008-04-28 Bruno Haible Expect rpmatch to be declared. diff --git a/lib/c-stack.c b/lib/c-stack.c index 81be7cf11..a7ebafa8a 100644 --- a/lib/c-stack.c +++ b/lib/c-stack.c @@ -119,7 +119,7 @@ die (int signo) write (STDERR_FILENO, "\n", 1); if (! signo) _exit (exit_failure); - kill (getpid (), signo); + raise (signo); abort (); } diff --git a/modules/c-stack b/modules/c-stack index 926aaf7ae..e87dd1ad6 100644 --- a/modules/c-stack +++ b/modules/c-stack @@ -10,6 +10,7 @@ Depends-on: gettext-h exitfail unistd +raise configure.ac: gl_C_STACK -- 2.11.0