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
/
health.cpp
diff --git
a/src/bin/lttng-sessiond/health.cpp
b/src/bin/lttng-sessiond/health.cpp
index a7f4bdcbb534dc82ae6b6cebaae876043a8f71f5..0735907a26ad3ae67d9fc26d6f543e8f7f0c98fa 100644
(file)
--- a/
src/bin/lttng-sessiond/health.cpp
+++ b/
src/bin/lttng-sessiond/health.cpp
@@
-17,10
+17,12
@@
#include "utils.hpp"
#include "thread.hpp"
#include "utils.hpp"
#include "thread.hpp"
+namespace {
struct thread_notifiers {
struct lttng_pipe *quit_pipe;
sem_t ready;
};
struct thread_notifiers {
struct lttng_pipe *quit_pipe;
sem_t ready;
};
+} /* namespace */
static
void mark_thread_as_ready(struct thread_notifiers *notifiers)
static
void mark_thread_as_ready(struct thread_notifiers *notifiers)
@@
-255,7
+257,7
@@
bool launch_health_management_thread(void)
struct thread_notifiers *notifiers;
struct lttng_thread *thread;
struct thread_notifiers *notifiers;
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.028608 seconds
and
4
git commands to generate.