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
/
bin
/
lttng-sessiond
/
agent-thread.cpp
diff --git
a/src/bin/lttng-sessiond/agent-thread.cpp
b/src/bin/lttng-sessiond/agent-thread.cpp
index dc8cb2961228e93584d70bde9f67015bb43b8a81..e54a7cecf6f450ec1e1594b42e9edb2e01a45b8b 100644
(file)
--- a/
src/bin/lttng-sessiond/agent-thread.cpp
+++ b/
src/bin/lttng-sessiond/agent-thread.cpp
@@
-377,8
+377,7
@@
static void *thread_agent_management(void *data)
goto error_poll_create;
}
goto error_poll_create;
}
- ret = lttng_poll_add(&events, thread_quit_pipe_fd,
- LPOLLIN | LPOLLERR);
+ ret = lttng_poll_add(&events, thread_quit_pipe_fd, LPOLLIN);
if (ret < 0) {
goto error_tcp_socket;
}
if (ret < 0) {
goto error_tcp_socket;
}
@@
-411,8
+410,7
@@
static void *thread_agent_management(void *data)
mark_thread_as_ready(notifiers);
/* Add TCP socket to the poll set. */
mark_thread_as_ready(notifiers);
/* Add TCP socket to the poll set. */
- ret = lttng_poll_add(&events, reg_sock->fd,
- LPOLLIN | LPOLLERR | LPOLLHUP | LPOLLRDHUP);
+ ret = lttng_poll_add(&events, reg_sock->fd, LPOLLIN | LPOLLRDHUP);
if (ret < 0) {
goto error;
}
if (ret < 0) {
goto error;
}
@@
-484,8
+482,7
@@
restart:
* read), only add poll error event to only
* detect shutdown.
*/
* read), only add poll error event to only
* detect shutdown.
*/
- ret = lttng_poll_add(&events, new_app_socket_fd,
- LPOLLERR | LPOLLHUP | LPOLLRDHUP);
+ ret = lttng_poll_add(&events, new_app_socket_fd, LPOLLRDHUP);
if (ret < 0) {
agent_destroy_app(new_app);
continue;
if (ret < 0) {
agent_destroy_app(new_app);
continue;
This page took
0.02448 seconds
and
4
git commands to generate.