X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=857201def7d9d35d1228e23e9ed4d2472b4f2088;hb=49e614cb2878f0664c9f44f9f24cb1d81116de21;hp=c8628e8767ba1c6ee263f0f0d44f2b4fc6160748;hpb=03e431550191df8609f921c7b4054c57ee4644d8;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index c8628e876..857201def 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -1212,6 +1212,8 @@ void lttng_consumer_cleanup(void) * it. */ lttng_ht_destroy(consumer_data.stream_list_ht); + + run_as_destroy_worker(); } /* @@ -2356,7 +2358,7 @@ restart: consumer_del_metadata_stream(stream, metadata_ht); } else { ERR("Unexpected poll events %u for sock %d", revents, pollfd); - rcu_read_unlock; + rcu_read_unlock(); goto end; } /* Release RCU lock for the stream looked up */