Message189507
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:07 | socketpair | set | recipients:
+ socketpair |
2013-05-18 11:44:07 | socketpair | set | messageid: <1368877447.89.0.564489245045.issue18006@psf.upfronthosting.co.za> |
2013-05-18 11:44:07 | socketpair | link | issue18006 messages |
2013-05-18 11:44:07 | socketpair | create | |
|