0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-28 22:52:30 +00:00

Abort on non-zero rc. ()

This commit is contained in:
vkalintiris 2024-02-14 13:10:36 +02:00 committed by GitHub
parent 06796dc0b4
commit 2d64790f8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -511,14 +511,20 @@ void netdata_cleanup_and_exit(int ret, const char *action, const char *action_re
delta_shutdown_time("exit");
#ifdef ENABLE_SENTRY
sentry_native_fini();
#endif
usec_t ended_ut = now_monotonic_usec();
netdata_log_info("NETDATA SHUTDOWN: completed in %llu ms - netdata is now exiting - bye bye...", (ended_ut - started_ut) / USEC_PER_MS);
#ifdef ENABLE_SENTRY
if (ret)
abort();
else {
sentry_native_fini();
exit(ret);
}
#else
exit(ret);
#endif
}
void web_server_threading_selection(void) {
web_server_mode = web_server_mode_id(config_get(CONFIG_SECTION_WEB, "mode", web_server_mode_name(web_server_mode)));