mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-06-04 17:33:08 +00:00
macOS moltenVK support and SIGBUS handling (#11252)
This commit is contained in:
parent
2f93df480b
commit
08333e0876
6 changed files with 26 additions and 5 deletions
|
@ -1826,6 +1826,14 @@ const bool s_exception_handler_set = []() -> bool
|
|||
std::abort();
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
if (::sigaction(SIGBUS, &sa, NULL) == -1)
|
||||
{
|
||||
std::fprintf(stderr, "sigaction(SIGBUS) failed (%d).\n", errno);
|
||||
std::abort();
|
||||
}
|
||||
#endif
|
||||
|
||||
sa.sa_handler = sigpipe_signaling_handler;
|
||||
if (::sigaction(SIGPIPE, &sa, NULL) == -1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue