From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: linux-man@vger.kernel.org
Cc: "Alejandro Colomar" <alx@kernel.org>, "Tejun Heo" <tj@kernel.org>,
"Linus Torvalds" <torvalds@linux-foundation.org>,
"Craig Small" <csmall@enc.com.au>,
"Alexey Dobriyan" <adobriyan@gmail.com>,
"Alejandro Colomar" <alx.manpages@gmail.com>,
"Michael Kerrisk" <mtk.manpages@gmail.com>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: [PATCH 1/2] proc.5: note that "cmdline" might be favored over "stat.comm" by ps(1)
Date: Fri, 23 Dec 2022 18:59:52 +0100 [thread overview]
Message-ID: <patch-1.2-90c53495f-20221223T174835Z-avarab@gmail.com> (raw)
In-Reply-To: <cover-0.2-000000000-20221223T174835Z-avarab@gmail.com>
With "ps -A" the output uses the "stat.comm" field, but "ps a" will
display the value in "cmdline".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
man5/proc.5 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/man5/proc.5 b/man5/proc.5
index 65a4c38e3..115c8592e 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -2087,7 +2087,11 @@ The affected fields are indicated with the marking [PT].
The process ID.
.TP
(2) \fIcomm\fP \ %s
-The filename of the executable, in parentheses.
+The filename of the executable, in parentheses. Tools such as
+.BR ps (1)
+may alternatively (or additionally) use
+.IR /proc/ pid /cmdline.
+.IP
Strings longer than
.B TASK_COMM_LEN
(16) characters (including the terminating null byte) are silently truncated.
--
2.39.0.1106.gf45ba805d1a
next prev parent reply other threads:[~2022-12-23 18:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-23 17:59 [PATCH 0/2] proc.5: note broken v4.18 userspace promise Ævar Arnfjörð Bjarmason
2022-12-23 17:59 ` Ævar Arnfjörð Bjarmason [this message]
2022-12-28 20:27 ` [PATCH 1/2] proc.5: note that "cmdline" might be favored over "stat.comm" by ps(1) Alejandro Colomar
2022-12-23 17:59 ` [PATCH 2/2] proc.5: the "comm" field can be longer than 16 bytes Ævar Arnfjörð Bjarmason
2022-12-23 18:12 ` [PATCH 0/2] proc.5: note broken v4.18 userspace promise Linus Torvalds
2022-12-28 20:26 ` Alejandro Colomar
2023-01-04 20:59 ` Ævar Arnfjörð Bjarmason
2023-01-04 17:19 ` Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=patch-1.2-90c53495f-20221223T174835Z-avarab@gmail.com \
--to=avarab@gmail.com \
--cc=adobriyan@gmail.com \
--cc=alx.manpages@gmail.com \
--cc=alx@kernel.org \
--cc=csmall@enc.com.au \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox