Add FD_CLOEXEC option to all anonymous FDs
[lttng-tools.git] / ltt-sessiond / main.c
index 46e6fff454e66aa7dd091fb8a49edadc1d008c53..05114e1f2cbed563814c4f4babd80d963eddd1f6 100644 (file)
@@ -826,12 +826,14 @@ static int process_client_msg(struct command_ctx *cmd_ctx)
                /* Need a session for kernel command */
                if (cmd_ctx->lsm->cmd_type != LTTNG_KERNEL_LIST_EVENTS &&
                                cmd_ctx->session->kernel_session == NULL) {
+
                        ret = create_kernel_session(cmd_ctx->session);
                        if (ret < 0) {
                                ret = LTTCOMM_KERN_SESS_FAIL;
                                goto error;
                        }
 
+                       /* Start the kernel consumer daemon */
                        if (kconsumerd_pid == 0) {
                                ret = start_kconsumerd();
                                if (ret < 0) {
This page took 0.02297 seconds and 4 git commands to generate.