Clean-up: unnecessary duplicated call to exit()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Nov 2017 22:50:16 +0000 (23:50 +0100)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Nov 2017 22:53:12 +0000 (23:53 +0100)
exit(EXIT_FAILURE) is called outside of the switch case.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index 6113f49ade90cea6e02e7a4c74c296fa82acdbc1..968fec84a1d6bc80299cbbcd0aa2241de84f5012 100644 (file)
@@ -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()");
This page took 0.027378 seconds and 4 git commands to generate.