projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Launch agent management thread using lttng_thread
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
main.c
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index 39800b51ccba4cefaec88d13e803620da6a02b10..56d932da9f7a961a2274d63d7ee32b6f8ce877ed 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-146,7
+146,6
@@
static int apps_cmd_notify_pipe[2] = { -1, -1 };
/* Pthread, Mutexes and Semaphores */
static pthread_t kernel_thread;
/* Pthread, Mutexes and Semaphores */
static pthread_t kernel_thread;
-static pthread_t agent_reg_thread;
static pthread_t load_session_thread;
/*
static pthread_t load_session_thread;
/*
@@
-2447,14
+2446,9
@@
int main(int argc, char **argv)
goto exit_apps_notify;
}
goto exit_apps_notify;
}
- /* Create agent registration thread. */
- ret = pthread_create(&agent_reg_thread, default_pthread_attr(),
- agent_thread_manage_registration, (void *) NULL);
- if (ret) {
- errno = ret;
- PERROR("pthread_create agent");
+ /* Create agent management thread. */
+ if (!launch_agent_management_thread()) {
retval = -1;
retval = -1;
- stop_threads();
goto exit_agent_reg;
}
goto exit_agent_reg;
}
@@
-2520,13
+2514,6
@@
exit_load_session:
}
}
exit_kernel:
}
}
exit_kernel:
-
- ret = pthread_join(agent_reg_thread, &status);
- if (ret) {
- errno = ret;
- PERROR("pthread_join agent");
- retval = -1;
- }
exit_agent_reg:
exit_apps_notify:
exit_apps:
exit_agent_reg:
exit_apps_notify:
exit_apps:
This page took
0.025747 seconds
and
4
git commands to generate.