Exiting the app after receiving a signal

This commit is contained in:
Vladyslav Baranovskyi
2024-05-29 19:02:39 +03:00
parent 9a04808701
commit 9d1ac4f618

View File

@@ -48,6 +48,9 @@ namespace OpenVulkano
{
spdlog::error("Received signal {}", sigCode);
spdlog::shutdown();
// NOTE(vb): I'm not sure what function to call here and with what code: either std::exit() in order to
// cleanup resources or std::_exit() which quits the app immediately
std::exit(0);
}
#ifdef _WIN32