Query: posix_getsid
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
POSIX_GETSID(3) 1 POSIX_GETSID(3) posix_getsid - Get the current sid of the processSYNOPSISint posix_getsid (int $pid)DESCRIPTIONReturn the session id of the process $pid. The session id of a process is the process group id of the session leader.PARAMETERSo $pid - The process identifier. If set to 0, the current process is assumed. If an invalid $pid is specified, then FALSE is returned and an error is set which can be checked with posix_get_last_error(3).RETURN VALUESReturns the identifier, as an integer.EXAMPLESExample #1 Example use of posix_getsid(3) <?php $pid = posix_getpid(); echo posix_getsid($pid); //8805 ?>SEE ALSOposix_getpgid(3), posix_setsid(3), POSIX man page GETSID(2). PHP Documentation Group POSIX_GETSID(3)
| Related Man Pages |
|---|
| getsid(2) - mojave |
| getsid(2) - opensolaris |
| setpgid(2) - opensolaris |
| getsid(3) - linux |
| getsid(3p) - x11r4 |
| Similar Topics in the Unix Linux Community |
|---|
| User Guide: Posting in the Emergency Forum |
| Forum Video Tutorial: How to Use Code Tags |
| Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1) |
| Please Welcome Don Cragun as Lead Moderator |