projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove fcntl wrapper
[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 bd9d46bb6dc0f06b8197e6fe0dc2c8740893c683..4aa4275629e0d92fea6014c3ad5f304bcb9ed075 100644
(file)
--- a/
src/bin/lttng-sessiond/health.cpp
+++ b/
src/bin/lttng-sessiond/health.cpp
@@
-16,6
+16,7
@@
#include <common/pipe.hpp>
#include <common/utils.hpp>
#include <common/pipe.hpp>
#include <common/utils.hpp>
+#include <fcntl.h>
#include <inttypes.h>
#include <sys/stat.h>
#include <inttypes.h>
#include <sys/stat.h>
@@
-134,7
+135,7
@@
static void *thread_manage_health(void *data)
}
mark_thread_as_ready(notifiers);
}
mark_thread_as_ready(notifiers);
- while (
1
) {
+ while (
true
) {
DBG("Health check ready");
/* Infinite blocking call, waiting for transmission */
DBG("Health check ready");
/* Infinite blocking call, waiting for transmission */
@@
-241,7
+242,7
@@
error:
lttng_poll_clean(&events);
rcu_unregister_thread();
lttng_poll_clean(&events);
rcu_unregister_thread();
- return
NULL
;
+ return
nullptr
;
}
static bool shutdown_health_management_thread(void *data)
}
static bool shutdown_health_management_thread(void *data)
@@
-252,7
+253,7
@@
static bool shutdown_health_management_thread(void *data)
return notify_thread_pipe(write_fd) == 1;
}
return notify_thread_pipe(write_fd) == 1;
}
-bool launch_health_management_thread(
void
)
+bool launch_health_management_thread()
{
struct thread_notifiers *notifiers;
struct lttng_thread *thread;
{
struct thread_notifiers *notifiers;
struct lttng_thread *thread;
This page took
0.030007 seconds
and
4
git commands to generate.