This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author socketpair
Recipients socketpair
Date 2013-05-18.11:44:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In linux (Since 2.6.9) we can use syscall

prctl(PR_SET_NAME, "Some thread name")

to set thread name to the kernel. This thread is seen  under this name in some process tool (like top, ps, pstree (have bug reported connected with this) and others).

It will be nice if this syscall will be called (from correspoding thread=TID) when changing (setting) thread name.

Note, that in current implementation name will be truncated to 15 bytes in kernel.

This work very well using ctypes or python-prctl module.

Also there is error in manpage about prctl saying that name is set to process (already sent to maintainer). Really, name is set to each thread.
Date User Action Args
2013-05-18 11:44:07socketpairsetrecipients: + socketpair
2013-05-18 11:44:07socketpairsetmessageid: <>
2013-05-18 11:44:07socketpairlinkissue18006 messages
2013-05-18 11:44:07socketpaircreate