mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2025-11-09 15:04:04 +08:00
qt: use _exit instead of exit on SIGINT
This commit is contained in:
parent
d3123079e8
commit
92ce241d4d
@ -1498,7 +1498,7 @@ void GMainWindow::SetupSigInterrupts() {
|
||||
|
||||
void GMainWindow::HandleSigInterrupt(int sig) {
|
||||
if (sig == SIGINT) {
|
||||
exit(1);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
// Calling into Qt directly from a signal handler is not safe,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user