Project

General

Profile

Actions

Bug #83

closed
VJ GI

set thread name

Bug #83: set thread name

Added by Victor Julien about 16 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
High
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

For all threads set the name using: prctl(PR_SET_NAME, "myname");

VJ Updated by Victor Julien about 16 years ago Actions #1

  • Due date changed from 02/09/2010 to 02/17/2010

Don't miss the mgt threads.

VJ Updated by Victor Julien about 16 years ago Actions #2

  • Due date changed from 02/17/2010 to 03/13/2010
  • Target version changed from 0.8.1 to 0.8.2

GI Updated by Gerado Iglesias Galvan about 16 years ago Actions #3

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

VJ Updated by Victor Julien about 16 years ago Actions #4

Right. So we need proper detection of it's availability in configure.in. Anything similar to it in FreeBSD/Mac/Windows?

GI Updated by Gerado Iglesias Galvan about 16 years ago Actions #5

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.

VJ Updated by Victor Julien about 16 years ago Actions #6

Can you create a patch for this?

VJ Updated by Victor Julien about 16 years ago Actions #7

  • Due date changed from 03/13/2010 to 04/16/2010
  • Assignee changed from OISF Dev to Gerado Iglesias Galvan
  • Priority changed from Normal to High

VJ Updated by Victor Julien about 16 years ago Actions #8

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Estimated time changed from 2.00 h to 4.00 h

Patch that adds support for this in Linux applied.

Actions

Also available in: PDF Atom