From: Kienan Stewart Date: Thu, 28 Nov 2024 20:35:06 +0000 (-0500) Subject: Clean-up: lttng-consumerd: Replace `exit()` with `return` X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=15683c2f13aea68c1dafc4ed54584180e03d2756;p=lttng-tools.git Clean-up: lttng-consumerd: Replace `exit()` with `return` Change-Id: I64f4c24780ef7cb5fd016dfb8f43cbb6a6f1dfb0 Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau --- 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; } }