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>
Mon, 4 Jul 2022 15:43:43 +0000 (11:43 -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.cpp

index a93b4cb95975a90356b052bdfce798bffbfff504..43879c99fe8957d021e2dacbb2218997cd3c73d8 100644 (file)
@@ -2965,6 +2965,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.026115 seconds and 4 git commands to generate.