diff options
Diffstat (limited to '')
-rw-r--r-- | src/exporting/pubsub/pubsub.c (renamed from exporting/pubsub/pubsub.c) | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/exporting/pubsub/pubsub.c b/src/exporting/pubsub/pubsub.c index 4989160a4..7fc416258 100644 --- a/exporting/pubsub/pubsub.c +++ b/src/exporting/pubsub/pubsub.c @@ -99,6 +99,10 @@ void pubsub_connector_worker(void *instance_p) struct pubsub_specific_config *connector_specific_config = instance->config.connector_specific_config; struct pubsub_specific_data *connector_specific_data = instance->connector_specific_data; + char threadname[ND_THREAD_TAG_MAX + 1]; + snprintfz(threadname, ND_THREAD_TAG_MAX, "EXPPBSB[%zu]", instance->index); + uv_thread_set_name_np(threadname); + while (!instance->engine->exit) { struct stats *stats = &instance->stats; char error_message[ERROR_LINE_MAX + 1] = ""; |