X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fsession.c;h=1ace823c7143b8d0169feb1f551a9151e75e7fe4;hp=118c8f57cb6d2ff14ca5c9656c35cddab7535c4d;hb=0177d773712c6d6b11e395708ae2cc686d6917a4;hpb=ef805c1d5319ddce9777a7b78cbbaf595a7981e2 diff --git a/ltt-sessiond/session.c b/ltt-sessiond/session.c index 118c8f57c..1ace823c7 100644 --- a/ltt-sessiond/session.c +++ b/ltt-sessiond/session.c @@ -213,21 +213,18 @@ int create_session(char *name, char *path) /* Init kernel session */ new_session->kernel_session = NULL; - /* Init list */ - CDS_INIT_LIST_HEAD(&new_session->ust_traces); + /* Init UST session list */ + CDS_INIT_LIST_HEAD(&new_session->ust_session_list.head); - /* Set trace list counter */ - new_session->ust_trace_count = 0; + /* Init lock */ + pthread_mutex_init(&new_session->lock, NULL); /* Add new session to the session list */ lock_session_list(); add_session_list(new_session); unlock_session_list(); - /* Init lock */ - pthread_mutex_init(&new_session->lock, NULL); - - DBG("Tracing session %s created in %s", new_session->name, new_session->path); + DBG("Tracing session %s created in %s", name, path); return 0;