Fix: don't put() thread on shutdown failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 14 Jan 2019 21:53:38 +0000 (16:53 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 14 Jan 2019 22:56:28 +0000 (17:56 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/thread.c

index 6eb5e8efb3124f67b7f1315c788162eaa67f31dd..c685442ba036e55ec24c413375d5409e50f56daf 100644 (file)
@@ -169,6 +169,7 @@ bool _lttng_thread_shutdown(struct lttng_thread *thread)
        if (ret) {
                PERROR("Failed to join \"%s\" thread", thread->name);
                result = false;
        if (ret) {
                PERROR("Failed to join \"%s\" thread", thread->name);
                result = false;
+               goto end;
        }
        /* Release the list's reference to the thread. */
        cds_list_del(&thread->node);
        }
        /* Release the list's reference to the thread. */
        cds_list_del(&thread->node);
This page took 0.026735 seconds and 5 git commands to generate.