macOS moltenVK support and SIGBUS handling (#11252)

This commit is contained in:
nastys
2021-12-12 21:35:56 +01:00
committed by GitHub
parent 2f93df480b
commit 08333e0876
6 changed files with 26 additions and 5 deletions
+8
View File
@@ -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)
{