Message ID | 1589301419-24459-4-git-send-email-Dave.Martin@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | prctl.2 man page updates for Linux 5.6 | expand |
On 5/12/20 6:36 PM, Dave Martin wrote: > 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. Thanks, Dave. Patch applied. Cheers, Michael > Signed-off-by: Dave Martin <Dave.Martin@arm.com> > --- > man2/prctl.2 | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/man2/prctl.2 b/man2/prctl.2 > index a35b748..9736434 100644 > --- a/man2/prctl.2 > +++ b/man2/prctl.2 > @@ -808,8 +808,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, >
diff --git a/man2/prctl.2 b/man2/prctl.2 index a35b748..9736434 100644 --- a/man2/prctl.2 +++ b/man2/prctl.2 @@ -808,8 +808,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,
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> --- man2/prctl.2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)