php man page for posix_getsid

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 process

SYNOPSIS
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.
PARAMETERS
o $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 VALUES
Returns the identifier, as an integer.
EXAMPLES
Example #1 Example use of posix_getsid(3) <?php $pid = posix_getpid(); echo posix_getsid($pid); //8805 ?>
SEE ALSO
posix_getpgid(3), posix_setsid(3), POSIX man page GETSID(2). PHP Documentation Group POSIX_GETSID(3)
Related Man Pages
getsid(2) - mojave
getsid(3p) - centos
setpgid(3) - ultrix
getsid(3p) - suse
getsid(2) - osx
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
User Guide: Posting in the Emergency Forum
UNIX.COM 2017 Year End Summary
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!