lttng-sessiond: keep track of UST consumer fd for all UST sessions.
[lttng-tools.git] / lttng-sessiond / main.c
index 0c93395b4a573ddbbaeca68332692e5169d777d2..d1cc3fa8f81a3aec484e6ca476720ff9a3e7fa48 100644 (file)
@@ -157,6 +157,8 @@ static struct ust_cmd_queue ust_cmd_queue;
  */
 static struct ltt_session_list *session_list_ptr;
 
  */
 static struct ltt_session_list *session_list_ptr;
 
+int ust_consumer_fd;
+
 /*
  * Create a poll set with O_CLOEXEC and add the thread quit pipe to the set.
  */
 /*
  * Create a poll set with O_CLOEXEC and add the thread quit pipe to the set.
  */
@@ -3010,8 +3012,7 @@ static int process_client_msg(struct command_ctx *cmd_ctx)
                                        goto error;
                                }
 
                                        goto error;
                                }
 
-                               cmd_ctx->session->ust_session->consumer_fd =
-                                       ustconsumer_data.cmd_sock;
+                               ust_consumer_fd = ustconsumer_data.cmd_sock;
                        }
                        pthread_mutex_unlock(&ustconsumer_data.pid_mutex);
                }
                        }
                        pthread_mutex_unlock(&ustconsumer_data.pid_mutex);
                }
This page took 0.023359 seconds and 4 git commands to generate.