projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stop the application registration thread before orphaned threads
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
register.c
diff --git
a/src/bin/lttng-sessiond/register.c
b/src/bin/lttng-sessiond/register.c
index b75db4ed9533f9c0e73025602b3729514d89d111..6776019c68d3cdef3cfd4439906363a56b345c39 100644
(file)
--- a/
src/bin/lttng-sessiond/register.c
+++ b/
src/bin/lttng-sessiond/register.c
@@
-361,7
+361,7
@@
static bool shutdown_application_registration_thread(void *data)
return notify_thread_pipe(write_fd) == 1;
}
return notify_thread_pipe(write_fd) == 1;
}
-
bool
launch_application_registration_thread(
+
struct lttng_thread *
launch_application_registration_thread(
struct ust_cmd_queue *cmd_queue)
{
struct lttng_pipe *quit_pipe;
struct ust_cmd_queue *cmd_queue)
{
struct lttng_pipe *quit_pipe;
@@
-388,9
+388,8
@@
bool launch_application_registration_thread(
if (!thread) {
goto error;
}
if (!thread) {
goto error;
}
- lttng_thread_put(thread);
- return true;
+ return thread;
error:
cleanup_application_registration_thread(notifiers);
error:
cleanup_application_registration_thread(notifiers);
- return
false
;
+ return
NULL
;
}
}
This page took
0.023354 seconds
and
4
git commands to generate.