projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ltt-sessiond: fix 2 double-unlock
[lttng-tools.git]
/
ltt-sessiond
/
session.c
diff --git
a/ltt-sessiond/session.c
b/ltt-sessiond/session.c
index 9ca6a69ad2ce4aa902773546653851c69751a6db..1ace823c7143b8d0169feb1f551a9151e75e7fe4 100644
(file)
--- a/
ltt-sessiond/session.c
+++ b/
ltt-sessiond/session.c
@@
-18,11
+18,9
@@
#define _GNU_SOURCE
#include <limits.h>
#define _GNU_SOURCE
#include <limits.h>
-#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <urcu/list.h>
#include <lttngerr.h>
#include <lttngerr.h>
@@
-215,21
+213,18
@@
int create_session(char *name, char *path)
/* Init kernel session */
new_session->kernel_session = NULL;
/* 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();
/* 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;
return 0;
This page took
0.024714 seconds
and
4
git commands to generate.