Fix: notify the viewer if new streams got added
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index d8105e4058128bdc9a902bb8051fc991971f2b90..380b4f833042cad3dcf7809e1871016fda753506 100644 (file)
@@ -2128,6 +2128,11 @@ int relay_streams_sent(struct lttcomm_relayd_hdr *recv_hdr,
         */
        set_viewer_ready_flag(cmd);
 
+       /*
+        * Inform the viewer that there are new streams in the session.
+        */
+       uatomic_set(&cmd->session->new_streams, 1);
+
        reply.ret_code = htobe32(LTTNG_OK);
        send_ret = cmd->sock->ops->sendmsg(cmd->sock, &reply, sizeof(reply), 0);
        if (send_ret < 0) {
This page took 0.023181 seconds and 4 git commands to generate.