summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-09-19 18:25:56 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2025-09-19 19:09:54 -0500
commit1e415c8646c02e67553d78e755d06ef35f49e333 (patch)
tree8fb99ce2d545f310d11c11b7655d371da7e042ac /Source
parentfce5f7c74ed069459b3c298b6e2459dd76f987d7 (diff)
Main: Add SA_RESTART to signal handler sigaction sa_flags.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp2
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 6132085b15..669daabec0 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -301,7 +301,7 @@ int main(const int argc, char* argv[])
struct sigaction sa;
sa.sa_handler = signal_handler;
sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_RESETHAND;
+ sa.sa_flags = SA_RESTART | SA_RESETHAND;
sigaction(SIGINT, &sa, nullptr);
sigaction(SIGTERM, &sa, nullptr);
#endif
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index b5cc0813a3..d42bbacfdb 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -156,7 +156,7 @@ static void InstallSignalHandler()
struct sigaction sa;
sa.sa_handler = &SignalDaemon::HandleInterrupt;
sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_RESETHAND;
+ sa.sa_flags = SA_RESTART | SA_RESETHAND;
sigaction(SIGINT, &sa, nullptr);
sigaction(SIGTERM, &sa, nullptr);
}