Browse Source

Do not intentionally abort on non-0 exit code. (#18991)

vkalintiris 4 months ago
parent
commit
2bea77a749
1 changed files with 3 additions and 8 deletions
  1. 3 8
      src/daemon/main.c

+ 3 - 8
src/daemon/main.c

@@ -495,15 +495,10 @@ void netdata_cleanup_and_exit(int ret, const char *action, const char *action_re
 #endif
 
 #ifdef ENABLE_SENTRY
-    if (ret)
-        abort();
-    else {
-        nd_sentry_fini();
-        exit(ret);
-    }
-#else
-    exit(ret);
+    nd_sentry_fini();
 #endif
+
+    exit(ret);
 }
 
 void web_server_threading_selection(void) {