wmc: Don't catch SIGSEGV.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-12-10 12:11:33 +01:00
parent f9d7acbf45
commit aaa5216a3a
1 changed files with 0 additions and 11 deletions

View File

@ -136,8 +136,6 @@ static const struct long_option long_options[] =
{ NULL } { NULL }
}; };
static void segvhandler(int sig);
static void cleanup_files(void) static void cleanup_files(void)
{ {
if (output_name) unlink( output_name ); if (output_name) unlink( output_name );
@ -241,7 +239,6 @@ int main(int argc,char *argv[])
struct strarray files; struct strarray files;
atexit( cleanup_files ); atexit( cleanup_files );
signal(SIGSEGV, segvhandler);
signal( SIGTERM, exit_on_signal ); signal( SIGTERM, exit_on_signal );
signal( SIGINT, exit_on_signal ); signal( SIGINT, exit_on_signal );
#ifdef SIGHUP #ifdef SIGHUP
@ -337,11 +334,3 @@ int main(int argc,char *argv[])
header_name = NULL; header_name = NULL;
return 0; 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();
}