Date: Wed, 11 Apr 2001 21:59:03 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: John Baldwin <jhb@FreeBSD.org> Cc: Kirk McKusick <mckusick@mckusick.com>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, Brian Somers <brian@Awfulhak.org> Subject: Re: cvs commit: src/bin/ps ps.c Message-ID: <Pine.BSF.4.21.0104112151320.95695-100000@besplex.bde.org> In-Reply-To: <XFMail.010410164324.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Apr 2001, John Baldwin wrote: > [ more to Brian than to Kirk ] > If all that is needed is a uniquifier for sessions, then why not use > the actual session ID itself: s_sid? It's already provided in > kinfo_proc as ki_sid even, ps(1) just doesn't use it at the moment. > That is probably much easier to parse than a kernel address. I agree that this would be better. In fact, Kirk added both ki_sid and ki_tsid. He apparently just forgot to actually use them :-). I think pstat should also print the session ID instead of the session pointer. This would take a bit more work to implement (a sysctl returns a `struct tty' for each tty, and this struct only contains the [t]session pointer). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0104112151320.95695-100000>