diff options
Diffstat (limited to 'exporting/init_connectors.c')
-rw-r--r-- | exporting/init_connectors.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/exporting/init_connectors.c b/exporting/init_connectors.c index a15665a966..ba3802780a 100644 --- a/exporting/init_connectors.c +++ b/exporting/init_connectors.c @@ -65,6 +65,9 @@ int init_connectors(struct engine *engine) // dispatch the instance worker thread uv_thread_create(&instance->thread, connector->worker, instance); + char threadname[NETDATA_THREAD_NAME_MAX+1]; + snprintfz(threadname, NETDATA_THREAD_NAME_MAX, "EXPORTING-%zu", instance->index); + uv_thread_set_name_np(instance->thread, threadname); } } |