Use a common function to abort for debugging purposes

This commit is contained in:
Cameron Gutman
2024-02-25 19:23:58 -06:00
parent 53b2217a34
commit 83e3ea5aa7
5 changed files with 18 additions and 4 deletions

View File

@@ -318,7 +318,7 @@ main(int argc, char *argv[]) {
auto task = []() {
BOOST_LOG(fatal) << "10 seconds passed, yet Sunshine's still running: Forcing shutdown"sv;
log_flush();
std::abort();
lifetime::debug_trap();
};
force_shutdown = task_pool.pushDelayed(task, 10s).task_id;
@@ -331,7 +331,7 @@ main(int argc, char *argv[]) {
auto task = []() {
BOOST_LOG(fatal) << "10 seconds passed, yet Sunshine's still running: Forcing shutdown"sv;
log_flush();
std::abort();
lifetime::debug_trap();
};
force_shutdown = task_pool.pushDelayed(task, 10s).task_id;