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");