From 6c5070d9157ab0de667568655f0bbeb60780d701 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 8 Aug 2020 18:25:48 -0700 Subject: fixes #960 NNG threads inherit application thread name This also exposes an nng_thread_set_name() function for applications to use. All NNG thread names start with "nng:". Note that support is highly dependent on the operating system. --- src/transport/zerotier/zerotier.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/transport/zerotier') diff --git a/src/transport/zerotier/zerotier.c b/src/transport/zerotier/zerotier.c index 64fdad87..e4cddb20 100644 --- a/src/transport/zerotier/zerotier.c +++ b/src/transport/zerotier/zerotier.c @@ -1458,6 +1458,7 @@ zt_node_create(zt_node **ztnp, const char *path) zt_node_destroy(ztn); return (rv); } + nni_thr_set_name(&ztn->zn_bgthr, "nng:zt"); if (strlen(path) > 0) { char *lkfile; -- cgit v1.2.3-70-g09d2