diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/init-first.c | 3 | ||||
-rw-r--r-- | libdiskfs/sync-interval.c | 3 |
2 files changed, 6 insertions, 0 deletions
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 <stdlib.h> +#include <pthread.h> #include <hurd/ports.h> 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, diff --git a/libdiskfs/sync-interval.c b/libdiskfs/sync-interval.c index 3a09e868..a9fc0f60 100644 --- a/libdiskfs/sync-interval.c +++ b/libdiskfs/sync-interval.c @@ -94,6 +94,9 @@ static void * periodic_sync (void *arg) { int interval = (int)(uintptr_t) arg; + + pthread_setname_np (pthread_self (), "sync"); + for (;;) { error_t err; |