posix_getsid

Example

 int posix_getsid ( int $pid ) 

Description

Return the session id of the process pid. The session id of a process is the process group id of the session leader.

Return Values

Returns the identifier, as an integer.