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 --- libnetfs/init-loop.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libnetfs/init-loop.c') diff --git a/libnetfs/init-loop.c b/libnetfs/init-loop.c index c6ca5387..00f0fa46 100644 --- a/libnetfs/init-loop.c +++ b/libnetfs/init-loop.c @@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include "netfs.h" +#include static int thread_timeout = 1000 * 60 * 2; /* two minutes */ static int server_timeout = 1000 * 60 * 10; /* ten minutes */ @@ -28,6 +29,8 @@ netfs_server_loop (void) { error_t err; + pthread_setname_np (pthread_self (), "netfs"); + do { ports_manage_port_operations_multithread (netfs_port_bucket, -- cgit v1.2.3