Add a consumer daemon INIT command
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.c
index 627cd2a8b5d7aad61ffc1d97794a0c2bbf756267..74c6de399af9f260264eac8a01894f4a1487c599 100644 (file)
@@ -1260,6 +1260,19 @@ int lttng_kconsumer_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:
                goto end_nosignal;
        }
This page took 0.023646 seconds and 4 git commands to generate.