diff options
| author | Arkadiusz Drabczyk <arkadiusz@drabczyk.org> | 2020-06-17 22:51:25 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-06-19 13:55:51 +0200 |
| commit | b260aaeca98c62eeb48163c29604f44b855369f8 (patch) | |
| tree | 9652b390fc52860ef6c106d4792dd687ca1173d4 /man5 | |
| parent | 1297d74439693701805445eed7d0da82be1bf9e6 (diff) | |
| download | man-pages-b260aaeca98c62eeb48163c29604f44b855369f8.tar.gz | |
proc.5: Inform that comm in /proc/pid/{stat,status} might also be truncated
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>
Diffstat (limited to 'man5')
| -rw-r--r-- | man5/proc.5 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/man5/proc.5 b/man5/proc.5 index 538c6c66a1..edaf281d23 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -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 |
