]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
proc.5: Inform that comm in /proc/pid/{stat,status} might also be truncated
authorArkadiusz Drabczyk <arkadiusz@drabczyk.org>
Wed, 17 Jun 2020 20:51:25 +0000 (22:51 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 19 Jun 2020 11:55:51 +0000 (13:55 +0200)
pgrep for example searches for a process name in /proc/pid/status
and therefore cannot find processes whose names are longer than 15
characters unless -f is specified.

Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man5/proc.5

index 538c6c66a1152ab4ff94871fc4d6fda2b5f70c90..edaf281d2390271a205f40c1c9745408b4994065 100644 (file)
@@ -2089,6 +2089,9 @@ The process ID.
 .TP
 (2) \fIcomm\fP \ %s
 The filename of the executable, in parentheses.
+Strings longer than
+.B TASK_COMM_LEN
+(16) characters (including the terminating null byte) are silently truncated.
 This is visible whether or not the executable is swapped out.
 .TP
 (3) \fIstate\fP \ %c
@@ -2504,6 +2507,9 @@ The fields are as follows:
 .IP * 2
 .IR Name :
 Command run by this process.
+Strings longer than
+.B TASK_COMM_LEN
+(16) characters (including the terminating null byte) are silently truncated.
 .IP *
 .IR Umask :
 Process umask, expressed in octal with a leading zero; see