#endif /* NETDATA_INTERNAL_CHECKS */
+// ----------------------------------------------------------------------------
+
+void netdata_cleanup_and_exit(int ret) {
+ exit(ret);
+}
+
+
// ----------------------------------------------------------------------------
// system functions
// to retrieve settings of the system
va_end( args );
}
- exit(1);
+ netdata_cleanup_and_exit(1);
}
void log_access( const char *fmt, ... )
#include <stdarg.h>
#include <time.h>
+#include "main.h"
+
#ifndef NETDATA_LOG_H
#define NETDATA_LOG_H 1
extern void kill_childs(void);
extern int killpid(pid_t pid, int signal);
-extern void netdata_cleanup_and_exit(int ret);
+extern void netdata_cleanup_and_exit(int ret) __attribute__ ((noreturn));
#endif /* NETDATA_MAIN_H */