Bug 143850

Summary: procfs(5) manpage for status > controlling terminal is incorrect
Product: Documentation Reporter: Slaven Rezic <slaven>
Component: Books & ArticlesAssignee: Joel Dahl <joel>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Slaven Rezic 2010-02-12 22:10:05 UTC
	The procfs(5) manpage documents that the 6th field of the
	process status output is "major,minor of the controlling
	terminal, or -1,-1 if there is no controlling terminal".

	However experiments and the source code in
	/usr/src/sys/fs/procfs/procfs_status.c show that the contents
	of this field is the devname, or "-" if there is no
	controlling terminal. This was apparently changed in revision
	1.56 of this file, with the commit message "Don't export
	major,minor, instead export tty name."
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-02-13 05:05:46 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-doc

documentation PR, it seems.
Comment 2 Joel Dahl freebsd_committer freebsd_triage 2013-04-22 12:04:11 UTC
Responsible Changed
From-To: freebsd-doc->joel

Take.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-04-22 21:15:05 UTC
Author: joel (doc committer)
Date: Mon Apr 22 20:14:57 2013
New Revision: 249778
URL: http://svnweb.freebsd.org/changeset/base/249778

Log:
  Update description of process status output.
  
  PR:		143850
  Submitted by:	Slaven Rezic <slaven@rezic.de>

Modified:
  head/share/man/man5/procfs.5

Modified: head/share/man/man5/procfs.5
==============================================================================
--- head/share/man/man5/procfs.5	Mon Apr 22 19:38:56 2013	(r249777)
+++ head/share/man/man5/procfs.5	Mon Apr 22 20:14:57 2013	(r249778)
@@ -2,7 +2,7 @@
 .\" Written by Garrett Wollman
 .\" This file is in the public domain.
 .\"
-.Dd September 22, 2009
+.Dd April 22, 2013
 .Dt PROCFS 5
 .Os
 .Sh NAME
@@ -155,9 +155,10 @@ process group id
 .It
 session id
 .It
-.Ar major , Ns Ar minor
+device name
 of the controlling terminal, or
-.Dv -1,-1
+a minus sign
+.Pq Dq -
 if there is no controlling terminal.
 .It
 a list of process flags:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 4 Joel Dahl freebsd_committer freebsd_triage 2013-04-22 21:15:07 UTC
State Changed
From-To: open->closed

I've updated the manpage according to your suggestions. Thanks for the bug 
report.