aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2025-04-24 13:53:59 +0200
committerBernd Schubert <bernd@bsbernd.com>2025-04-28 19:57:39 +0200
commitef533e2e3fedbd647726416fa7f36ca543ee13ea (patch)
tree5e5c7d34d7d0e3065777082898f6f922e9f42028 /lib/fuse.c
parentc5a032b3410d7225ac0355355faa63565a209943 (diff)
downloadlibfuse-ef533e2e3fedbd647726416fa7f36ca543ee13ea.tar.gz
Add a fuse_set_thread_name() helper
Avoid splattering the code with ifdef Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index bbf573a..9b9b983 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -4912,9 +4912,7 @@ static void *fuse_prune_nodes(void *fuse)
struct fuse *f = fuse;
int sleep_time;
-#ifdef HAVE_PTHREAD_SETNAME_NP
- pthread_setname_np(pthread_self(), "fuse_prune_nodes");
-#endif
+ fuse_set_thread_name(pthread_self(), "fuse_prune_nodes");
while(1) {
sleep_time = fuse_clean_cache(f);