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;
}
/* Set state as running. */
- set_thread_status(true);
+ set_thread_status(true);
pthread_cleanup_pop(0);
/* This testpoint is after we signal readiness to the parent. */
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);