From: lace <> Date: Sat, 14 Apr 2007 17:40:01 +0000 (+0000) Subject: Make tkill() compatible with FC6+. X-Git-Url: http://git.jankratochvil.net/?a=commitdiff_plain;ds=sidebyside;h=5bc397c7d6260bd191c7c33300092742d56f5a47;hp=9af5f4e16a151ab375dec6939a035eda09de2edd;p=debugger.git Make tkill() compatible with FC6+. registry_atexit(): Kill incl. the tkill() ways. --- diff --git a/testsuite.c b/testsuite.c index c3a2c43..306bc1d 100644 --- a/testsuite.c +++ b/testsuite.c @@ -5,10 +5,11 @@ #include #include #include -#include +#include #include #include #include +#include #include "debugger.h" @@ -16,8 +17,7 @@ #include "debugger.c" -_syscall2(int, tkill, int, tid, int, sig) -int tkill(int tid, int sig); +#define tkill(tid, sig) syscall (SYS_tkill, (tid), (sig)) static int attach_checked (pid_t pid, int redelivered_expect) @@ -86,7 +86,11 @@ static void registry_atexit (void) struct registry *iter; for (iter = registry_list; iter != NULL; iter = iter->next) - kill (iter->pid, SIGKILL); + { + tkill (iter->pid, SIGCONT); + tkill (iter->pid, SIGKILL); + kill (iter->pid, SIGKILL); + } } static void registry_cleanup (void)