aboutsummaryrefslogtreecommitdiff
path: root/util/compatfd.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2014-01-30 10:20:32 +0000
committerMichael S. Tsirkin <mst@redhat.com>2014-03-09 21:09:38 +0200
commit4900116e6f0edef6877c0e8a9ca19957d47765c9 (patch)
tree8ecc45f0f28d012d2ffc8dad01352654444b89c9 /util/compatfd.c
parent8f480de0c91a18d550721f8d9af969ebfbda0793 (diff)
Add a 'name' parameter to qemu_thread_create
If enabled, set the thread name at creation (on GNU systems with pthread_set_np) Fix up all the callers with a thread name Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'util/compatfd.c')
-rw-r--r--util/compatfd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/compatfd.c b/util/compatfd.c
index 430a41c855..341ada638f 100644
--- a/util/compatfd.c
+++ b/util/compatfd.c
@@ -88,7 +88,8 @@ static int qemu_signalfd_compat(const sigset_t *mask)
memcpy(&info->mask, mask, sizeof(*mask));
info->fd = fds[1];
- qemu_thread_create(&thread, sigwait_compat, info, QEMU_THREAD_DETACHED);
+ qemu_thread_create(&thread, "signalfd_compat", sigwait_compat, info,
+ QEMU_THREAD_DETACHED);
return fds[0];
}