From 15683c2f13aea68c1dafc4ed54584180e03d2756 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 28 Nov 2024 15:35:06 -0500 Subject: [PATCH] Clean-up: lttng-consumerd: Replace `exit()` with `return` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I64f4c24780ef7cb5fd016dfb8f43cbb6a6f1dfb0 Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau --- src/bin/lttng-consumerd/lttng-consumerd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng-consumerd/lttng-consumerd.cpp b/src/bin/lttng-consumerd/lttng-consumerd.cpp index e46b6b671..0ab1940a2 100644 --- a/src/bin/lttng-consumerd/lttng-consumerd.cpp +++ b/src/bin/lttng-consumerd/lttng-consumerd.cpp @@ -711,8 +711,8 @@ exit_set_signal_handler: rcu_unregister_thread(); if (!retval) { - exit(EXIT_SUCCESS); + return EXIT_SUCCESS; } else { - exit(EXIT_FAILURE); + return EXIT_FAILURE; } } -- 2.39.5