From 905edfd9c993d85d6d09f65582896f37373cbd55 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 1 Dec 2015 14:24:43 +0100 Subject: [PATCH] HRT: Do not set thread name on Linux --- src/platforms/posix/work_queue/hrt_thread.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/platforms/posix/work_queue/hrt_thread.c b/src/platforms/posix/work_queue/hrt_thread.c index d9f8055519..ea185525ac 100644 --- a/src/platforms/posix/work_queue/hrt_thread.c +++ b/src/platforms/posix/work_queue/hrt_thread.c @@ -41,12 +41,6 @@ #include #include #include -#ifdef __PX4_LINUX -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif -#endif -#include #include #include #include @@ -130,7 +124,8 @@ static void hrt_work_process() #ifdef __PX4_DARWIN rv = pthread_setname_np("HRT"); #else - rv = pthread_setname_np(pthread_self(), "HRT"); + // The Linux headers do not actually contain this + //rv = pthread_setname_np(pthread_self(), "HRT"); #endif /* Then process queued work. We need to keep interrupts disabled while