Cleanup: remove ignored flags from poll events bitmasks
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 11 Nov 2020 15:38:51 +0000 (10:38 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 28 Oct 2022 20:57:16 +0000 (16:57 -0400)
commit1524f98c04431d04e50796f83a9dd29184b3a8a4
treed21cf17ac0e4fa0c1013a318f7cb1e8c9ee049bd
parent8d5a3312b34841f1ecba2605acad3eaca79fd5e4
Cleanup: remove ignored flags from poll events bitmasks

The POLLHUP and POLLERR flags are only valid in 'revents', they are
implicitly enabled regardless of the fact they were set in 'events' or not.

As such remove those flags from all poll events to reduce possible
confusion as to which flags can be returned by poll.

Change-Id: Id22c78c38257d96dfc47e1337795f13c70dd5f91
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
17 files changed:
src/bin/lttng-relayd/thread-utils.cpp
src/bin/lttng-sessiond/agent-thread.cpp
src/bin/lttng-sessiond/client.cpp
src/bin/lttng-sessiond/dispatch.cpp
src/bin/lttng-sessiond/health.cpp
src/bin/lttng-sessiond/manage-apps.cpp
src/bin/lttng-sessiond/manage-consumer.cpp
src/bin/lttng-sessiond/notification-thread-events.cpp
src/bin/lttng-sessiond/notification-thread.cpp
src/bin/lttng-sessiond/notify-apps.cpp
src/bin/lttng-sessiond/rotation-thread.cpp
src/bin/lttng-sessiond/thread-utils.cpp
src/common/consumer/consumer.cpp
src/lib/lttng-ctl/channel.cpp
src/lib/lttng-ctl/clear.cpp
src/lib/lttng-ctl/destruction-handle.cpp
tests/unit/test_utils_compat_poll.cpp
This page took 0.029642 seconds and 4 git commands to generate.