mirror of https://github.com/mkerrisk/man-pages
prctl.2: Fix mis-description of thread ID values in procfs
Under PR_SET_NAME, the [tid] value seen in procfs as /proc/self/task/[tid] is mistakenly described as the name of the thread, whereas really the name is on /proc/self/task/[tid]/comm. Fix it. Signed-off-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
1e0d99b899
commit
5aaf1385fb
|
@ -803,8 +803,10 @@ and retrieved using
|
|||
The attribute is likewise accessible via
|
||||
.IR /proc/self/task/[tid]/comm ,
|
||||
where
|
||||
.I tid
|
||||
is the name of the calling thread.
|
||||
.I [tid]
|
||||
is the the thread ID of the calling thread, as returned by
|
||||
.BR gettid (2).
|
||||
.\" prctl PR_GET_NAME
|
||||
.TP
|
||||
.BR PR_GET_NAME " (since Linux 2.6.11)"
|
||||
Return the name of the calling thread,
|
||||
|
|
Loading…
Reference in New Issue