diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-08-28 04:31:39 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-08-28 04:31:39 -0700 |
commit | 10b241f9b04e266fd4d7c76aefd70d9a33af9633 (patch) | |
tree | 7998d8a74a673c9ee035e0d32f7fa7ac16cdf8be | |
parent | 74ff0a14d737974f9e38b46130b2318f70ccd996 (diff) |
iou: give async worker threads a name
Make them more easily identifiable in monitoring/profiling tools
-rw-r--r-- | src/iou.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -19,6 +19,7 @@ #include <pthread.h> #include <stdlib.h> #include <stddef.h> +#include <sys/prctl.h> #include "iou.h" @@ -148,6 +149,7 @@ static void * iou_thread(iou_thread_t *thread) assert(thread); assert(thread->iou); + prctl(PR_SET_NAME, "libiou-async"); iou = thread->iou; for (;;) { |