File tree 1 file changed +1
-21
lines changed
1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 22
22
#include < QtWidgets/qsplashscreen.h>
23
23
#include < QtGui/qpainter.h>
24
24
25
- // Required by the sigaction function in the exit_handler
26
- #if defined(_WIN32)
27
- #include " platform_win.h"
28
- #else
29
- #include < csignal>
30
- #endif
31
-
32
25
#ifdef _WIN32
33
26
#include < QtCore/QtPlugin>
34
27
Q_IMPORT_PLUGIN ( QWindowsIntegrationPlugin );
@@ -52,20 +45,7 @@ void exit_handler( int s )
52
45
53
46
catacurses::endwin ();
54
47
55
- // As suggested by https://github.com/CleverRaven/Cataclysm-DDA/pull/67893
56
- #if !defined(_WIN32)
57
- if ( s == 2 ) {
58
- struct sigaction sigIntHandler;
59
- sigIntHandler.sa_handler = SIG_DFL;
60
- sigemptyset ( &sigIntHandler.sa_mask );
61
- sigIntHandler.sa_flags = 0 ;
62
- sigaction ( SIGINT, &sigIntHandler, nullptr );
63
- kill ( getpid (), s );
64
- } else
65
- #endif
66
- {
67
- exit ( exit_status );
68
- }
48
+ exit ( exit_status );
69
49
}
70
50
inp_mngr.set_timeout ( old_timeout );
71
51
}
You can’t perform that action at this time.
0 commit comments