projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: report client list allocation failure as a fatal error
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
manage-apps.cpp
diff --git
a/src/bin/lttng-sessiond/manage-apps.cpp
b/src/bin/lttng-sessiond/manage-apps.cpp
index 4ee3538b2b9e70703edf7f02d2f9a5adf79767b8..f8297a6df82820a975bf514702d692de7057ba21 100644
(file)
--- a/
src/bin/lttng-sessiond/manage-apps.cpp
+++ b/
src/bin/lttng-sessiond/manage-apps.cpp
@@
-13,10
+13,12
@@
#include "utils.hpp"
#include "thread.hpp"
#include "utils.hpp"
#include "thread.hpp"
+namespace {
struct thread_notifiers {
struct lttng_pipe *quit_pipe;
int apps_cmd_pipe_read_fd;
};
struct thread_notifiers {
struct lttng_pipe *quit_pipe;
int apps_cmd_pipe_read_fd;
};
+} /* namespace */
static void cleanup_application_management_thread(void *data)
{
static void cleanup_application_management_thread(void *data)
{
@@
-211,7
+213,7
@@
bool launch_application_management_thread(int apps_cmd_pipe_read_fd)
struct thread_notifiers *notifiers = NULL;
struct lttng_thread *thread;
struct thread_notifiers *notifiers = NULL;
struct lttng_thread *thread;
- notifiers =
(thread_notifiers *) zmalloc(sizeof(*notifiers)
);
+ notifiers =
zmalloc<thread_notifiers>(
);
if (!notifiers) {
goto error_alloc;
}
if (!notifiers) {
goto error_alloc;
}
This page took
0.024582 seconds
and
4
git commands to generate.