summaryrefslogtreecommitdiff
path: root/libmachdev/ds_routines.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-08 21:25:55 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-08 21:25:55 +0100
commit883af6aa527c4d0b43adc99c19e1cbb53153a7a0 (patch)
treeab4170eae8919f11855e3b8a69f13457b4fa601d /libmachdev/ds_routines.c
parent7ac18bc84ae7c5a5f2f255b6d5337eb085bb86cd (diff)
Add names to threads
Diffstat (limited to 'libmachdev/ds_routines.c')
-rw-r--r--libmachdev/ds_routines.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c
index aeb7f5af..cdb820fb 100644
--- a/libmachdev/ds_routines.c
+++ b/libmachdev/ds_routines.c
@@ -62,6 +62,7 @@
#include <string.h>
#include <error.h>
#include <assert.h>
+#include <pthread.h>
#include <hurd.h>
#include <mach.h>
@@ -367,6 +368,8 @@ machdev_register (struct machdev_device_emulation_ops *ops)
void *
machdev_server(void *arg)
{
+ pthread_setname_np (pthread_self (), "machdev_server");
+
/* Launch. */
do
{