POSIX_GETPGID(3) 1 POSIX_GETPGID(3)
posix_getpgid - Get process group id for job control
SYNOPSIS
int posix_getpgid (int $pid)
DESCRIPTION
Returns the process group identifier of the process $pid or FALSE on failure.
PARAMETERS
o $pid
- The process id.
RETURN VALUES
Returns the identifier, as an integer.
EXAMPLES
Example #1
Example use of posix_getpgid(3)
<?php
$pid = posix_getppid();
echo posix_getpgid($pid); //35
?>
NOTES
Note
This is a not POSIX function, but is common on BSD and System V systems. If the system does not support this function, then it will
not be included at compile time. This may be checked with function_exists(3).
SEE ALSO
posix_getppid(3), man page SETPGID(2).
PHP Documentation Group POSIX_GETPGID(3)