Subject: Re: session ID changes
To: <>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 02/13/1998 11:22:43
On Fri, 13 Feb 1998 10:28:58 -0800 
 Jason Thorpe <thorpej@nas.nasa.gov> wrote:

More on this subject...

I just walked over to Tom's office and talked w/ him about this... X/Open
defines a getsid(), which returns the process group ID of the session
leader of the specified process.  (calling w/ pid == 0 means calling process).

Since the process group id of the session leader is guaranteed to be the
process id of the session leader (see enterpgrp()), I believe Tom's patch
is completely correct.

I would also like to implement getsid(), per XPG 4.2.  More diffs to
follow.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939