From: Jérémie Galarneau Date: Thu, 8 Jan 2015 23:06:20 +0000 (-0500) Subject: Fix: Remove structurally dead code from relayd X-Git-Tag: v2.6.1~54 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bafd3fc013fa9acf2ae856816baf12058f4574cb;p=lttng-tools.git Fix: Remove structurally dead code from relayd CID 1262070: Structurally dead code (UNREACHABLE) Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index bedf13df6..ff2bbda83 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -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);