I am trying to change the name of a thread in QNX 6.4.1, but the threads continue to be listed with the parent process name in a "pidin" listing.
I have created the thread:
iReturn = pthread_create(&threadhandle, &attr, &CALzoneCommThread, this);
I have renamed the thread from within the thread itself:
iReturn = pthread_setname_np(NULL, "HappyThread");
I have read the thread name back:
iReturn = pthread_getname_np(NULL, thread_name, 80);
And all threads return the name "HappyThread" as verified with printf statements, yet when I do a pidin, they are still listed with the process name "testapp". I need some help determining whether I have done something wrong in the code above, or if I am fundamentally misunderstanding the pidin command. Due to a requirement to play nicely with legacy utilities, the threads must have a name other than the process name.
Platform: QNX 6.4.1 Language: C