Fix: use signed variable for refcounting of consumer_relayd_sock_pair
[lttng-tools.git] / src / common / consumer / consumer.h
index 66092d3c5bc5888b0c2aa603a9c2255532c50af8..fc4723879f5fce3b10e98b9f31656882a38c52d4 100644 (file)
@@ -423,7 +423,7 @@ struct consumer_relayd_sock_pair {
        /* Network sequence number. */
        uint64_t net_seq_idx;
        /* Number of stream associated with this relayd */
-       unsigned int refcount;
+       int refcount;
 
        /*
         * This flag indicates whether or not we should destroy this object. The
@@ -593,6 +593,12 @@ struct lttng_consumer_global_data {
        struct lttng_ht *stream_per_chan_id_ht;
 };
 
+/*
+ * Set to nonzero when the consumer is exiting. Updated by signal
+ * handler and thread exit, read by threads.
+ */
+extern volatile int consumer_quit;
+
 /*
  * Init consumer data structures.
  */
This page took 0.023564 seconds and 4 git commands to generate.