mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-11-23 09:54:57 +00:00
Main: Add SA_RESTART to signal handler sigaction sa_flags.
This commit is contained in:
parent
fce5f7c74e
commit
1e415c8646
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user