summaryrefslogtreecommitdiff
path: root/libmachdev
diff options
context:
space:
mode:
Diffstat (limited to 'libmachdev')
-rw-r--r--libmachdev/ds_routines.c3
-rw-r--r--libmachdev/trivfs_server.c3
2 files changed, 6 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
{
diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c
index d2031974..2c905a63 100644
--- a/libmachdev/trivfs_server.c
+++ b/libmachdev/trivfs_server.c
@@ -26,6 +26,7 @@
#include <fcntl.h>
#include <error.h>
#include <sys/mman.h>
+#include <pthread.h>
#include <hurd/ports.h>
#include <hurd/trivfs.h>
#include <hurd/fsys.h>
@@ -554,6 +555,7 @@ machdev_trivfs_server_startup(mach_port_t bootstrap)
void *
machdev_trivfs_server_loop(void *arg)
{
+ pthread_setname_np (pthread_self (), "machdev_trivfs");
/* Launch. */
do
{
@@ -566,6 +568,7 @@ machdev_trivfs_server_loop(void *arg)
void *
machdev_trivfs_server_loop_forever(void *arg)
{
+ pthread_setname_np (pthread_self (), "machdev_trivfs");
/* Launch. */
do
{