diff options
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/daemon.c | 3 | ||||
-rw-r--r-- | src/daemon/main.c | 2 | ||||
-rw-r--r-- | src/daemon/sentry-native/sentry-native.c | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index d9a4b81de5..ed8d677d94 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -26,6 +26,9 @@ void get_netdata_execution_path(void) { } netdata_exe_file[exepath_size] = '\0'; +#ifdef ENABLE_LIBBACKTRACE + bt_init(netdata_exe_file, netdata_configured_cache_dir); +#endif // macOS's dirname(3) does not modify passed string char *tmpdir = strdupz(netdata_exe_file); diff --git a/src/daemon/main.c b/src/daemon/main.c index de22a90f43..a1c39a0471 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -1400,6 +1400,8 @@ int unittest_prepare_rrd(char **user) { } int main(int argc, char **argv) { + uv_setup_args(argc, argv); + // initialize the system clocks clocks_init(); netdata_start_time = now_realtime_sec(); diff --git a/src/daemon/sentry-native/sentry-native.c b/src/daemon/sentry-native/sentry-native.c index 3594c1fffa..04246f1f7d 100644 --- a/src/daemon/sentry-native/sentry-native.c +++ b/src/daemon/sentry-native/sentry-native.c @@ -38,6 +38,10 @@ void sentry_native_init(void) sentry_options_set_debug(options, 1); #endif +#ifdef ENABLE_LIBBACKTRACE + sentry_options_add_attachment(options, bt_path); +#endif + sentry_init(options); } |