prctl.2: PR_SET_NAME silently truncates strings that exceed 16 bytes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-10-28 14:26:23 +01:00
parent db6d60b30a
commit ea55bc7b3a
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,8 @@ using the value in the location pointed to by
The name can be up to 16 bytes long,
.\" TASK_COMM_LEN in include/linux/sched.h
including the terminating null byte.
(If the length of the string, including the terminating null byte,
exceeds 16 bytes, the string is silently truncated.)
This is the same attribute that can be set via
.BR pthread_setname_np (3)
and retrieved using