From 56c6dbee9be6ac299a811145fa99b297feddff65 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 7 Jun 2007 12:59:24 +0200 Subject: [PATCH] widl: Get rid of the SIGSEGV handler, this only makes things harder to debug. --- tools/widl/widl.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/widl/widl.c b/tools/widl/widl.c index ed09b32089a..21657b63cb2 100644 --- a/tools/widl/widl.c +++ b/tools/widl/widl.c @@ -144,7 +144,6 @@ static struct option long_options[] = { }; static void rm_tempfile(void); -static void segvhandler(int sig); static char *make_token(const char *name) { @@ -186,7 +185,6 @@ int main(int argc,char *argv[]) int ret = 0; int opti = 0; - signal(SIGSEGV, segvhandler); signal( SIGTERM, exit_on_signal ); signal( SIGINT, exit_on_signal ); #ifdef SIGHUP @@ -455,11 +453,3 @@ static void rm_tempfile(void) if (server_name) unlink(server_name); } - -static void segvhandler(int sig) -{ - fprintf(stderr, "\n%s:%d: Oops, segment violation\n", input_name, line_number); - fflush(stdout); - fflush(stderr); - abort(); -} -- 2.11.4.GIT