Commit 5cb32833 authored by Peter Hutterer's avatar Peter Hutterer

inputthread: On Linux leave the main thread's name as-is

On Linux, setting the main thread's name changes the program name
(/proc/self/comm). Setting it to MainThread breaks scripts that rely on
the command name, e.g. ps -C Xorg.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
Signed-off-by: default avatarHans de Goede <>
parent 007f8ee6
......@@ -431,11 +431,13 @@ InputThreadPreInit(void)
hotplugPipeWrite = hotplugPipe[1];
#ifndef __linux__ /* Linux does not deal well with renaming the main thread */
pthread_setname_np (pthread_self(), "MainThread");
pthread_setname_np ("MainThread");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment