Alexandre Julliard : wrc: Don't catch SIGSEGV.
Module: wine Branch: master Commit: 49564a92bbf899be06e18ef4873faad06715da8d URL: https://source.winehq.org/git/wine.git/?a=commit;h=49564a92bbf899be06e18ef48... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Dec 10 12:11:50 2021 +0100 wrc: Don't catch SIGSEGV. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tools/wrc/wrc.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/wrc/wrc.c b/tools/wrc/wrc.c index f848b30a0f8..ca9361c3017 100644 --- a/tools/wrc/wrc.c +++ b/tools/wrc/wrc.c @@ -155,7 +155,6 @@ int parser_debug, yy_flex_debug; resource_t *resource_top; /* The top of the parsed resources */ static void cleanup_files(void); -static void segvhandler(int sig); enum long_options_values { @@ -434,7 +433,6 @@ int main(int argc,char *argv[]) { int i; - signal(SIGSEGV, segvhandler); signal( SIGTERM, exit_on_signal ); signal( SIGINT, exit_on_signal ); #ifdef SIGHUP @@ -551,11 +549,3 @@ static void cleanup_files(void) if (output_name) unlink(output_name); if (temp_name) unlink(temp_name); } - -static void segvhandler(int sig) -{ - fprintf(stderr, "\n%s:%d: Oops, segment violation\n", input_name, line_number); - fflush(stdout); - fflush(stderr); - abort(); -}
participants (1)
-
Alexandre Julliard