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-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=9911d21b154b53ed659415e6baa56d5fb0863716 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 3728005df..55f5c8035 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -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);