Fix: Remove structurally dead code from relayd
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Jan 2015 23:06:20 +0000 (18:06 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 24 Sep 2015 01:35:37 +0000 (21:35 -0400)
CID 1262070:  Structurally dead code  (UNREACHABLE)

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

index bedf13df666d2696c4fffa84e271a7f5558efffd..ff2bbda8355425f52f9633ba38961a4f357e3303 100644 (file)
@@ -2143,13 +2143,11 @@ int relayd_live_create(struct lttng_uri *uri,
         */
        return retval;
 
+       /*
+        * Join on the live_listener_thread should anything be added after
+        * the live_listener thread's creation.
+        */
 
-       ret = pthread_join(live_listener_thread, &status);
-       if (ret) {
-               errno = ret;
-               PERROR("pthread_join live listener");
-               retval = -1;
-       }
 exit_listener_thread:
 
        ret = pthread_join(live_worker_thread, &status);
This page took 0.031685 seconds and 4 git commands to generate.