Exiting the app after receiving a signal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user