summaryrefslogtreecommitdiff
path: root/os/inputthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/inputthread.c')
-rw-r--r--os/inputthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/inputthread.c b/os/inputthread.c
index ddafa7fe8..8e7f2edb9 100644
--- a/os/inputthread.c
+++ b/os/inputthread.c
@@ -431,11 +431,13 @@ InputThreadPreInit(void)
}
hotplugPipeWrite = hotplugPipe[1];
+#ifndef __linux__ /* Linux does not deal well with renaming the main thread */
#if defined(HAVE_PTHREAD_SETNAME_NP_WITH_TID)
pthread_setname_np (pthread_self(), "MainThread");
#elif defined(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID)
pthread_setname_np ("MainThread");
#endif
+#endif
}