Do not intentionally abort on non-0 exit code. (#18991)
vkalintiris committed
Nov 12, 2024 at 09:43 UTC
2bea77a7499964decefe3b5d5ec9cd3b79c3ee54
1 file changed
+3
-8
src/daemon/main.c
+3
-8
@@ -495,15 +495,10 @@ void netdata_cleanup_and_exit(int ret, const char *action, const char *action_re
495
#endif
496
497
#ifdef ENABLE_SENTRY
498
- if (ret)
499
- abort();
500
- else {
501
- nd_sentry_fini();
502
- exit(ret);
503
- }
504
-#else
505
- exit(ret);
498
+ nd_sentry_fini();
499
#endif
500
+
501
+ exit(ret);
502
}
503
504
void web_server_threading_selection(void) {