Fix: sessiond: report client list allocation failure as a fatal error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Jun 2022 16:03:23 +0000 (12:03 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 17 Aug 2022 22:00:31 +0000 (18:00 -0400)
Report the failure to allocate a notification client list as a fatal
notification thread error.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I8f2654020d0d890cc9275d445fdeccde940d2ae0

src/bin/lttng-sessiond/notification-thread-events.c

index 76a7363bf8d03bb907f420abdbd377deff7f8563..5733ecda8ac63f2d95b89a975548f91e8cd20d85 100644 (file)
@@ -2809,6 +2809,7 @@ int handle_notification_thread_command_register_trigger(
                        client_list = notification_client_list_create(state, condition);
                        if (!client_list) {
                                ERR("Error creating notification client list for trigger %s", trigger->name);
+                               ret = -1;
                                goto error_free_ht_element;
                        }
                }
This page took 0.02707 seconds and 4 git commands to generate.