Fix: use after free of a relayd stream
[lttng-tools.git] / src / bin / lttng-relayd / connection.h
index 931169ec0616d348e5198a46d2b22b24b2eb9867..fc4a59075f3dabd4a88eab06f8eef06b58af53d2 100644 (file)
@@ -23,6 +23,7 @@
 #include <inttypes.h>
 #include <pthread.h>
 #include <urcu.h>
+#include <urcu/wfqueue.h>
 #include <urcu/list.h>
 
 #include <common/hashtable/hashtable.h>
@@ -53,6 +54,13 @@ struct relay_connection {
        uint32_t major;
        uint32_t minor;
        uint64_t session_id;
+
+       /*
+        * This contains streams that are received on that connection. It's used to
+        * store them until we get the streams sent command where they are removed
+        * and flagged ready for the viewer. This is ONLY used by the control
+        * thread thus any action on it should happen in that thread.
+        */
        struct cds_list_head recv_head;
        unsigned int version_check_done:1;
 
This page took 0.023407 seconds and 4 git commands to generate.