Преглед изворни кода

qt: use _exit instead of exit on SIGINT

Liam пре 3 година
родитељ
комит
92ce241d4d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/yuzu/main.cpp

+ 1 - 1
src/yuzu/main.cpp

@@ -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,