Add a consumer daemon INIT command
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index 94b761cb8fc19fa532b4a485c178b4ac93aaee54..4d1737726c3b00a8a02cf068cc10dada125b9289 100644 (file)
@@ -2109,6 +2109,19 @@ int lttng_ustconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
                }
                break;
        }
+       case LTTNG_CONSUMER_INIT:
+       {
+               ret_code = lttng_consumer_init_command(ctx,
+                               msg.u.init.sessiond_uuid);
+
+               health_code_update();
+               ret = consumer_send_status_msg(sock, ret_code);
+               if (ret < 0) {
+                       /* Somehow, the session daemon is not responding anymore. */
+                       goto end_nosignal;
+               }
+               break;
+       }
        default:
                break;
        }
This page took 0.023068 seconds and 4 git commands to generate.