Commit aaa5216a authored by Alexandre Julliard's avatar Alexandre Julliard

wmc: Don't catch SIGSEGV.

parent f9d7acbf
......@@ -136,8 +136,6 @@ static const struct long_option long_options[] =
{ NULL }
};
static void segvhandler(int sig);
static void cleanup_files(void)
{
if (output_name) unlink( output_name );
......@@ -241,7 +239,6 @@ int main(int argc,char *argv[])
struct strarray files;
atexit( cleanup_files );
signal(SIGSEGV, segvhandler);
signal( SIGTERM, exit_on_signal );
signal( SIGINT, exit_on_signal );
#ifdef SIGHUP
......@@ -337,11 +334,3 @@ int main(int argc,char *argv[])
header_name = NULL;
return 0;
}
static void segvhandler(int sig)
{
fprintf(stderr, "\n%s:%d: Oops, segment violation\n", input_name, line_number);
fflush(stdout);
fflush(stderr);
abort();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment