From 9e0b7610c433725222171e342029bf201a37111b Mon Sep 17 00:00:00 2001 From: William Cohen Date: Wed, 9 Mar 2011 16:56:03 -0500 Subject: Support for ABRT ABRT is a package that allows automated reported of problems on the system. ABRT watches for programs exiting as a result of a SIGSEGV and whether the executable belongs a package. If both conditions are true then, the ABRT applet can assist in report a bug. --- memstomp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'memstomp.c') diff --git a/memstomp.c b/memstomp.c index 1089e75..f780fa7 100644 --- a/memstomp.c +++ b/memstomp.c @@ -44,9 +44,9 @@ #endif #include -#define KILL_TRAP raise(SIGABRT) +#define ABRT_TRAP raise(SIGSEGV) -static bool kill_trap = false; +static bool abrt_trap = false; #ifndef SCHED_RESET_ON_FORK /* "Your libc lacks the definition of SCHED_RESET_ON_FORK. We'll now @@ -172,7 +172,7 @@ static void setup(void) { "memstomp: useful stack traces.\n\n"); if (getenv("MEMSTOMP_KILL")) - kill_trap = true; + abrt_trap = true; initialized = true; @@ -323,7 +323,7 @@ void * memcpy(void * dest, const void * src, size_t count) /* Check for overlap. */ if (distance < count) { - if (kill_trap) KILL_TRAP; + if (abrt_trap) ABRT_TRAP; /* report the overlap */ warn_memcpy(dest, src, count); } -- cgit