From 10b241f9b04e266fd4d7c76aefd70d9a33af9633 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 28 Aug 2021 04:31:39 -0700 Subject: iou: give async worker threads a name Make them more easily identifiable in monitoring/profiling tools --- src/iou.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iou.c b/src/iou.c index 2be79ca..cdfc317 100644 --- a/src/iou.c +++ b/src/iou.c @@ -19,6 +19,7 @@ #include #include #include +#include #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 (;;) { -- cgit v1.2.3