aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorBernd Schubert <bernd@bsbernd.com>2025-01-27 21:33:43 +0100
committerBernd Schubert <bernd@bsbernd.com>2025-02-10 16:56:45 +0100
commitfa28806932ff118d2da5b874a53cf64a85899300 (patch)
tree7462f25465d27fca569aefcd5403239eb0cd8219 /lib/fuse.c
parentb64f63aba4b9af99120d670656f1c76e3d8cb855 (diff)
downloadlibfuse-fa28806932ff118d2da5b874a53cf64a85899300.tar.gz
lib: Set thread names
Main worker threads: fuse_worker high level clean up threads: "fuse_prune_nodes" Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 8fbc035..5d57d24 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -9,6 +9,8 @@
See the file COPYING.LIB
*/
+#define _GNU_SOURCE
+
#include "fuse_config.h"
#include "fuse_i.h"
#include "fuse_lowlevel.h"
@@ -4890,6 +4892,8 @@ static void *fuse_prune_nodes(void *fuse)
struct fuse *f = fuse;
int sleep_time;
+ pthread_setname_np(pthread_self(), "fuse_prune_nodes");
+
while(1) {
sleep_time = fuse_clean_cache(f);
sleep(sleep_time);