even a caller specify a name for rumpuser_thread_create(),
the thread name isn't configured because the
pthread_setname_np(3) is never called.
I guess there are typos in defined name in librumpuser
(rumpuser_pth.c or configure.ac). the following patch is for
rumpuser_pth.c.
it's only debugging purpose, but it is definitely helpful to
investigate the behavior of messy threads.
# yes, I finally started integrating rumpuser to Linux libos.
-- Hajime
diff --git a/lib/librumpuser/rumpuser_pth.c b/lib/librumpuser/rumpuser_pth.c
index 5877e9fa8b56..58727f71481e 100644
--- a/lib/librumpuser/rumpuser_pth.c
+++ b/lib/librumpuser/rumpuser_pth.c
@@ -80,11 +80,11 @@ rumpuser_thread_create(void *(*f)(void *), void *arg, const
char *thrname,
nanosleep(&ts, NULL);
}
-#if defined(HAVE_PTHREAD_SETNAME_3)
+#if defined(HAVE_PTHREAD_SETNAME3)
if (rv == 0 && thrname) {
pthread_setname_np(*ptidp, thrname, NULL);
}
-#elif defined(HAVE_PTHREAD_SETNAME_2)
+#elif defined(HAVE_PTHREAD_SETNAME2)
if (rv == 0 && thrname) {
pthread_setname_np(*ptidp, thrname);
}