projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: remove ignored flags from poll events bitmasks
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
clear.cpp
diff --git
a/src/lib/lttng-ctl/clear.cpp
b/src/lib/lttng-ctl/clear.cpp
index 114758b0c8f3a38296600e9bba47d28929ccc0f2..870935bd3280d527ace8d40444d43ea5d3864eb3 100644
(file)
--- a/
src/lib/lttng-ctl/clear.cpp
+++ b/
src/lib/lttng-ctl/clear.cpp
@@
-64,7
+64,7
@@
static
struct lttng_clear_handle *lttng_clear_handle_create(int sessiond_socket)
{
int ret;
struct lttng_clear_handle *lttng_clear_handle_create(int sessiond_socket)
{
int ret;
- struct lttng_clear_handle *handle =
(lttng_clear_handle *) zmalloc(sizeof(*handle)
);
+ struct lttng_clear_handle *handle =
zmalloc<lttng_clear_handle>(
);
if (!handle) {
goto end;
if (!handle) {
goto end;
@@
-77,7
+77,7
@@
struct lttng_clear_handle *lttng_clear_handle_create(int sessiond_socket)
}
ret = lttng_poll_add(&handle->communication.events, sessiond_socket,
}
ret = lttng_poll_add(&handle->communication.events, sessiond_socket,
- LPOLLIN | LPOLL
HUP | LPOLLRDHUP | LPOLLERR
);
+ LPOLLIN | LPOLL
RDHUP
);
if (ret) {
goto error;
}
if (ret) {
goto error;
}
@@
-282,7
+282,7
@@
enum lttng_error_code lttng_clear_session(const char *session_name,
enum lttng_error_code ret_code = LTTNG_OK;
struct lttng_clear_handle *handle = NULL;
struct lttcomm_session_msg lsm = {
enum lttng_error_code ret_code = LTTNG_OK;
struct lttng_clear_handle *handle = NULL;
struct lttcomm_session_msg lsm = {
- .cmd_type = LTT
NG
_CLEAR_SESSION,
+ .cmd_type = LTT
COMM_SESSIOND_COMMAND
_CLEAR_SESSION,
.session = {},
.domain = {},
.u = {},
.session = {},
.domain = {},
.u = {},
This page took
0.027216 seconds
and
4
git commands to generate.