Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

qt: use _exit instead of exit on SIGINT

Liam3e167c3e5af4
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index c5285ffc96..c6f285dc26 100644
--- a/src/yuzu/main.cpp
+++ b/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,