0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-28 06:32: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,13 +511,19 @@ void netdata_cleanup_and_exit(int ret, const char *action, const char *action_re
delta_shutdown_time("exit"); delta_shutdown_time("exit");
#ifdef ENABLE_SENTRY
sentry_native_fini();
#endif
usec_t ended_ut = now_monotonic_usec(); 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); 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); exit(ret);
#endif
} }
void web_server_threading_selection(void) { void web_server_threading_selection(void) {