Can't use prctl is CONFIG_TASK_NAME_SIZE==0

This commit is contained in:
Gregory Nutt 2016-10-06 10:40:15 -06:00
parent 1a71720006
commit 98855649c2
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

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