Can't use prctl is CONFIG_TASK_NAME_SIZE==0
This commit is contained in:
parent
1a71720006
commit
98855649c2
@ -481,7 +481,9 @@ FAR void *CNxServer::listener(FAR void *arg)
|
|||||||
|
|
||||||
CNxServer *This = (CNxServer*)arg;
|
CNxServer *This = (CNxServer*)arg;
|
||||||
|
|
||||||
|
#ifdef CONFIG_TASK_NAME_SIZE > 0
|
||||||
prctl(PR_SET_NAME, "CNxServer::listener", 0);
|
prctl(PR_SET_NAME, "CNxServer::listener", 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Process events forever
|
// Process events forever
|
||||||
|
|
||||||
|
@ -279,7 +279,9 @@ FAR void *CTouchscreen::listener(FAR void *arg)
|
|||||||
{
|
{
|
||||||
CTouchscreen *This = (CTouchscreen *)arg;
|
CTouchscreen *This = (CTouchscreen *)arg;
|
||||||
|
|
||||||
|
#if CONFIG_TASK_NAME_SIZE > 0
|
||||||
prctl(PR_SET_NAME, "CTouchScreen::listener", 0);
|
prctl(PR_SET_NAME, "CTouchScreen::listener", 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
_info("Listener started\n");
|
_info("Listener started\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user