Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* proc(5) documentation for the cmdline file
@ 2020-01-04 21:11 Jeff Norden
  0 siblings, 0 replies; only message in thread
From: Jeff Norden @ 2020-01-04 21:11 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-04 21:11 proc(5) documentation for the cmdline file Jeff Norden

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git