Skip to content

Fix invalid thread name error (limited to 16 characters)

Hi,

Trying to execute ./pubsub_server on Linux (x86_64 x86_64 x86_64 GNU/Linux) yields the following error : Error during set name to thread: SubscriberSocketMgr# RT publisher created :)

This due to the limitation imposed by pthread_setname_np() which limits thread's name length to 16 ('\0' being included).

So, Changing the name from "SubscriberSocketMgr" to "SubSocketMgr" (13 characters if we count '\0') fixes the issue.

Edited by BELKALEM Jugurtha

Merge request reports