summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-05-23 21:35:35 +0000
committergad <gad@FreeBSD.org>2004-05-23 21:35:35 +0000
commit37581d73985792a5398220d48cac631cad39b7f9 (patch)
tree64b73fb95fb2dc478066cb89052382bf1cbc7286 /bin
parent4680df73af087d5d9a4c31114f623245da99ec77 (diff)
downloadFreeBSD-src-37581d73985792a5398220d48cac631cad39b7f9.zip
FreeBSD-src-37581d73985792a5398220d48cac631cad39b7f9.tar.gz
Add the 'sid' info to the output of `ps -j', to make up for the 'sess'
(session-pointer) info which was dropped from `ps' earlier in 5.x. PR: bin/59423 Submitted by: Jilles Tjoelker
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/ps.12
-rw-r--r--bin/ps/ps.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index 105370b..230c6df 100644
--- a/bin/ps/ps.1
+++ b/bin/ps/ps.1
@@ -142,7 +142,7 @@ Repeat the information header as often as necessary to guarantee one
header per page of information.
.It Fl j
Print information associated with the following keywords:
-.Cm user , pid , ppid , pgid , jobc , state , tt , time ,
+.Cm user , pid , ppid , pgid , sid , jobc , state , tt , time ,
and
.Cm command .
.It Fl L
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index b2b7b27..8f96fe2 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -142,7 +142,7 @@ static void sizevars(void);
static void usage(void);
static char dfmt[] = "pid,tt,state,time,command";
-static char jfmt[] = "user,pid,ppid,pgid,jobc,state,tt,time,command";
+static char jfmt[] = "user,pid,ppid,pgid,sid,jobc,state,tt,time,command";
static char lfmt[] = "uid,pid,ppid,cpu,pri,nice,vsz,rss,mwchan,state,"
"tt,time,command";
static char o1[] = "pid";
OpenPOWER on IntegriCloud