relay: use urcu_ref_get_unless_zero
[lttng-tools.git] / src / bin / lttng-relayd / health-relayd.c
index 8452c1a6c3886f4aaa11b9e71faa7a358d48d254..b14b8277250f25f910588f12f50c293647e291a1 100644 (file)
 #include <sys/mman.h>
 #include <assert.h>
 #include <urcu/compiler.h>
-#include <ulimit.h>
 #include <inttypes.h>
 
 #include <common/defaults.h>
 #include <common/common.h>
-#include <common/consumer.h>
-#include <common/consumer-timer.h>
+#include <common/consumer/consumer.h>
+#include <common/consumer/consumer-timer.h>
 #include <common/compat/poll.h>
 #include <common/sessiond-comm/sessiond-comm.h>
 #include <common/utils.h>
@@ -409,8 +408,9 @@ restart:
                new_sock = -1;
        }
 
-exit:
 error:
+       lttng_relay_stop_threads();
+exit:
        if (err) {
                ERR("Health error occurred in %s", __func__);
        }
This page took 0.023375 seconds and 4 git commands to generate.