diff options
author | gad <gad@FreeBSD.org> | 2004-05-23 21:35:35 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-05-23 21:35:35 +0000 |
commit | 37581d73985792a5398220d48cac631cad39b7f9 (patch) | |
tree | 64b73fb95fb2dc478066cb89052382bf1cbc7286 /bin/ps | |
parent | 4680df73af087d5d9a4c31114f623245da99ec77 (diff) | |
download | FreeBSD-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/ps')
-rw-r--r-- | bin/ps/ps.1 | 2 | ||||
-rw-r--r-- | bin/ps/ps.c | 2 |
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"; |