From 883af6aa527c4d0b43adc99c19e1cbb53153a7a0 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 8 Feb 2025 21:25:55 +0100 Subject: Add names to threads --- libdiskfs/init-first.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libdiskfs/init-first.c') diff --git a/libdiskfs/init-first.c b/libdiskfs/init-first.c index 8f27eff8..0683552d 100644 --- a/libdiskfs/init-first.c +++ b/libdiskfs/init-first.c @@ -21,6 +21,7 @@ #include "priv.h" #include +#include #include static int thread_timeout = 1000 * 60 * 2; /* two minutes */ @@ -32,6 +33,8 @@ master_thread_function (void *demuxer) { error_t err; + pthread_setname_np (pthread_self (), "diskfs"); + do { ports_manage_port_operations_multithread (diskfs_port_bucket, -- cgit v1.2.3