Close stream and channel file descriptors as soon as passed to sessiond
[lttng-ust.git] / libringbuffer / ring_buffer_backend.c
index 23802e82321416d81782911e081b4359edd1ba35..dead69600f7a06391d9b276e348820eb0a59208a 100644 (file)
@@ -8,9 +8,8 @@
 
 #include <urcu/arch.h>
 
-#include "lttng/core.h"
-
 #include <lttng/ringbuffer-config.h>
+#include "vatomic.h"
 #include "backend.h"
 #include "frontend.h"
 #include "smp.h"
@@ -293,6 +292,7 @@ int channel_backend_init(struct channel_backend *chanb,
                buf = shmp(handle, chanb->buf[0].shmp);
                if (!buf)
                        goto end;
+               set_shmp(buf->self, chanb->buf[0].shmp._ref);
                ret = lib_ring_buffer_create(buf, chanb, -1,
                                        handle, shmobj);
                if (ret)
This page took 0.023572 seconds and 4 git commands to generate.