Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : POSIX Functions : posix_getpgid

posix_getpgid

Get process group id for job control (PHP 4, PHP 5)
int posix_getpgid ( int pid )

Returns the process group identifier of the process pid.

Parameters

pid

The process id.

Return Values

Returns the identifier, as an integer.

Examples

Example 1875. Example use of posix_getpgid()

<?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().

See Also
posix_getppid()
man page SETPGID(2)

Change Language


Follow Navioo On Twitter
posix_access
posix_ctermid
posix_get_last_error
posix_getcwd
posix_getegid
posix_geteuid
posix_getgid
posix_getgrgid
posix_getgrnam
posix_getgroups
posix_getlogin
posix_getpgid
posix_getpgrp
posix_getpid
posix_getppid
posix_getpwnam
posix_getpwuid
posix_getrlimit
posix_getsid
posix_getuid
posix_initgroups
posix_isatty
posix_kill
posix_mkfifo
posix_mknod
posix_setegid
posix_seteuid
posix_setgid
posix_setpgid
posix_setsid
posix_setuid
posix_strerror
posix_times
posix_ttyname
posix_uname
eXTReMe Tracker