Cleanup: erroneous use of CDS_INIT_LIST_HEAD() on node
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 81fba4e6912253c7daf8b825594bf3106cc93361..c9a142413fe5538bf4afdff1378f6c221f6d7097 100644 (file)
@@ -1921,7 +1921,6 @@ int handle_notification_thread_command_add_tracer_event_source(
                goto end;
        }
 
-       CDS_INIT_LIST_HEAD(&element->node);
        element->fd = tracer_event_source_fd;
        element->domain = domain_type;
 
@@ -1994,6 +1993,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;
This page took 0.024286 seconds and 4 git commands to generate.