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, 8 Jan 2015 23:06:20 +0000 (18:06 -0500)
CID 1262070:  Structurally dead code  (UNREACHABLE)

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

index 3728005df77c3efa3d7c9e20f5ca537db26940bf..55f5c80355afb7535e36056352218bc66967ecaa 100644 (file)
@@ -2142,13 +2142,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.025893 seconds and 4 git commands to generate.