From 173900f678f7f969c79a88ceac2f1e4be2588f79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 18 Dec 2020 16:15:18 -0500 Subject: [PATCH] notification: mark tracer source element as out of poll set MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Mark the tracer source element as being out of the notification thread's poll set once it has been removed. This has no effect right now, but it is less error-prone considering future changes to this function. Signed-off-by: Jérémie Galarneau Change-Id: Ia4d08dabd6b07ec455fe3120b7188e414232536e --- src/bin/lttng-sessiond/notification-thread-events.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index 81fba4e69..049a6d3fc 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -1994,6 +1994,8 @@ int handle_notification_thread_command_remove_tracer_event_source( goto end; } + source_element->is_fd_in_poll_set = false; + end: free(source_element); *_cmd_result = cmd_result; -- 2.34.1