From: Jérémie Galarneau Date: Thu, 30 Nov 2017 22:50:16 +0000 (+0100) Subject: Clean-up: unnecessary duplicated call to exit() X-Git-Tag: v2.11.0-rc1~422 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e9d6b496ff8c712366d235368fc547e64de13a8a;p=lttng-tools.git Clean-up: unnecessary duplicated call to exit() exit(EXIT_FAILURE) is called outside of the switch case. Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 6113f49ad..968fec84a 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -2522,7 +2522,7 @@ static pid_t spawn_consumerd(struct consumer_data *consumer_data) } default: ERR("unknown consumer type"); - exit(EXIT_FAILURE); + errno = 0; } if (errno != 0) { PERROR("Consumer execl()");