posix_getsid

 int posix_getsid ( int $pid ) 

説明

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

戻り値

Returns the identifier, as an integer.