From 049198cf02488027269789b2f9d01ec6e13dbe9e Mon Sep 17 00:00:00 2001 From: Zhilkin Serg Date: Fri, 27 Dec 2024 16:48:07 +0300 Subject: [PATCH] Revert 67893 --- src/main.cpp | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 61627d21558f2..0812cb4b676ac 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -60,9 +60,6 @@ #include "type_id.h" #include "ui_manager.h" #include "cata_imgui.h" -#if defined(MACOSX) || defined(__CYGWIN__) -# include // getpid() -#endif #if defined(EMSCRIPTEN) #include @@ -161,20 +158,8 @@ void exit_handler( int s ) signal( SIGABRT, SIG_DFL ); #endif -#if !defined(_WIN32) - if( s == 2 ) { - struct sigaction sigIntHandler; - sigIntHandler.sa_handler = SIG_DFL; - sigemptyset( &sigIntHandler.sa_mask ); - sigIntHandler.sa_flags = 0; - sigaction( SIGINT, &sigIntHandler, nullptr ); - kill( getpid(), s ); - } else -#endif - { - imclient.reset(); - exit( exit_status ); - } + imclient.reset(); + exit( exit_status ); } inp_mngr.set_timeout( old_timeout ); ui_manager::redraw_invalidated();