linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Norden <jeff@math.tntech.edu>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org
Subject: proc(5) documentation for the cmdline file
Date: Sat, 04 Jan 2020 15:11:05 -0600	[thread overview]
Message-ID: <fda7733p1y.fsf@norden.tntech.edu> (raw)

The following is from the current proc(5) man page:

/proc/[pid]/cmdline
    This read-only file holds the complete command line for the process,
    unless the process is a zombie.  In the latter case, there is nothing in
    this file: that is, a read on this file will return 0 characters.  The
    command-line arguments appear in this file as a set of strings separated
    by null bytes ('\0'), with a further null byte after the last string.


I believe that the end of the first sentence should say:
   "unless the process is a kernel process or a zombie."

or maybe it would read better as:
   "unless it is a kernel process or a zombie."

You might also add something like the following at the end:
   "When cmdline is empty, the stat or status file (below) can be used
    to determine whether or not a process is a zombie.

I'm no kernel expert, so please make sure this is correct.  It's just
something I noticed while poking around in /proc/

Thanks, and Happy New Years!

  -Jeff Norden, jeff@math.tntech.edu
   Dept of Math, Tenn Tech Univ, Cookeville TN 38505  (931)372-3441

                 reply	other threads:[~2020-01-04 21:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=fda7733p1y.fsf@norden.tntech.edu \
    --to=jeff@math.tntech.edu \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).