Skip to content

Commit

Permalink
Do not intentionally abort on non-0 exit code. (netdata#18991)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalintiris authored Nov 12, 2024
1 parent ffd702f commit 2bea77a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/daemon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2bea77a

Please sign in to comment.