session->kernel_session->gid = session->gid;
session->kernel_session->output_traces = session->output_traces;
session->kernel_session->snapshot_mode = session->snapshot_mode;
+ session->kernel_session->is_live_session = session->live_timer != 0;
return LTTNG_OK;
if (ret) {
PERROR("close");
}
- }
- sock = -1;
+ }
+ sock = -1;
/*
* TODO: Inform client somehow of the fatal error. At
* this point, ret < 0 means that a zmalloc failed
if (ret) {
PERROR("close");
}
- }
- sock = -1;
+ }
+ sock = -1;
clean_command_ctx(&cmd_ctx);