瀏覽代碼

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,