summaryrefslogtreecommitdiff
path: root/src/wg.c
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-04-12 01:05:32 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-12 01:05:32 -0400
commit4db920ce8cce46cee404c7d7870fac8eed2e7689 (patch)
tree6ef833c1add3560805992e814aac9ab2b4f00aa8 /src/wg.c
parenta490f2ebd9dbb4b0fb395a2b93f727c56afda218 (diff)
better thread names
Diffstat (limited to 'src/wg.c')
-rw-r--r--src/wg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wg.c b/src/wg.c
index 4e673b4..3da62ce 100644
--- a/src/wg.c
+++ b/src/wg.c
@@ -28,6 +28,7 @@
static
void *wg_gc(void *wg_anon) {
+ pthread_setname_np(pthread_self(), "wg_gc");
struct wg *wg = wg_anon;
pthread_t thread;