From 259fcfacc4e935bd626b029261c631b82131db50 Mon Sep 17 00:00:00 2001 From: Garance A Drosehn Date: Sun, 23 May 2004 21:35:35 +0000 Subject: [PATCH] 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 --- bin/ps/ps.1 | 2 +- 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 105370bbac88..230c6df76123 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 b2b7b27c8177..8f96fe21e6aa 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";