diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-08 21:25:55 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-08 21:25:55 +0100 |
commit | 883af6aa527c4d0b43adc99c19e1cbb53153a7a0 (patch) | |
tree | ab4170eae8919f11855e3b8a69f13457b4fa601d /libnetfs/init-loop.c | |
parent | 7ac18bc84ae7c5a5f2f255b6d5337eb085bb86cd (diff) |
Add names to threads
Diffstat (limited to 'libnetfs/init-loop.c')
-rw-r--r-- | libnetfs/init-loop.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <pthread.h> 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, |