This commit is contained in:
Scott E. Graves 2025-02-19 11:52:44 -06:00
parent b92b5e2e91
commit 20e6fd8ffd

View File

@ -47,6 +47,12 @@ using namespace monitarr;
auto main(int argc, char **argv) -> int {
MONITARR_USES_FUNCTION_NAME();
if (not utils::file::change_to_process_directory()) {
utils::error::handle_error(function_name,
"failed to change to process directory");
return 1;
}
#if defined(PROJECT_ENABLE_BACKWARD_CPP)
static backward::SignalHandling sh;
#endif // defined(PROJECT_ENABLE_BACKWARD_CPP)