CrashHandler: Use SetUnhandledExceptionFilter() and terminate on crash

Fixes zombie processes sticking around.
This commit is contained in:
Stenzek authored and Connor McLaughlin committed 2024-05-07 12:41:03 +10:00
1 parent 9752a037be
commit 339dc2313b
4 files changed
+35 -66

No files matched your search

+9
View File
@@ -100,6 +100,15 @@ bool DynamicLibrary::Open(const char* filename, Error* error)
#endif
}
void DynamicLibrary::Adopt(void* handle)
{
pxAssertRel(handle, "Handle is valid");
Close();
m_handle = handle;
}
void DynamicLibrary::Close()
{
if (!IsOpen())