From 98855649c2676263e4bb1c3bc991d055631569ad Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 6 Oct 2016 10:40:15 -0600 Subject: [PATCH] Can't use prctl is CONFIG_TASK_NAME_SIZE==0 --- libnxwidgets/src/cnxserver.cxx | 2 ++ nxwm/src/ctouchscreen.cxx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libnxwidgets/src/cnxserver.cxx b/libnxwidgets/src/cnxserver.cxx index f8d2dfe9c..d5d499e67 100644 --- a/libnxwidgets/src/cnxserver.cxx +++ b/libnxwidgets/src/cnxserver.cxx @@ -481,7 +481,9 @@ FAR void *CNxServer::listener(FAR void *arg) CNxServer *This = (CNxServer*)arg; +#ifdef CONFIG_TASK_NAME_SIZE > 0 prctl(PR_SET_NAME, "CNxServer::listener", 0); +#endif // Process events forever diff --git a/nxwm/src/ctouchscreen.cxx b/nxwm/src/ctouchscreen.cxx index 9a4b777b8..5cf18f94c 100644 --- a/nxwm/src/ctouchscreen.cxx +++ b/nxwm/src/ctouchscreen.cxx @@ -279,7 +279,9 @@ FAR void *CTouchscreen::listener(FAR void *arg) { CTouchscreen *This = (CTouchscreen *)arg; +#if CONFIG_TASK_NAME_SIZE > 0 prctl(PR_SET_NAME, "CTouchScreen::listener", 0); +#endif _info("Listener started\n");