Actions
Bug #83
closedset thread name
Affected Versions:
Effort:
Difficulty:
Label:
Description
For all threads set the name using: prctl(PR_SET_NAME, "myname");
Actions
Added by Victor Julien almost 16 years ago. Updated over 2 years ago.
Description
For all threads set the name using: prctl(PR_SET_NAME, "myname");
Don't miss the mgt threads.
Victor Julien wrote:
For all threads set the name using: prctl(PR_SET_NAME, "myname");
prctl() seems not to be portable and PR_SET_NAME is only available in kernels >2.6.9
Right. So we need proper detection of it's availability in configure.in. Anything similar to it in FreeBSD/Mac/Windows?
Windows uses SetThreadName, but it only works under debugging mode...
FreeBSD has pthread_set_name_np, though it seems it's a debugging interface too.
I have no clue about Mac.
Patch that adds support for this in Linux applied.