PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

posix_getpgrp> <posix_getlogin
Last updated: Fri, 05 Sep 2008

view this page in

posix_getpgid

(PHP 4, PHP 5)

posix_getpgidジョブ制御のプロセスグループ ID を得る

説明

int posix_getpgid ( int $pid )

プロセス pid のプロセスグループ ID を返します。

パラメータ

pid

プロセス ID。

返り値

ID を表す整数値を返します。

例1 posix_getpgid() の使用例

<?php
$pid 
posix_getppid();
echo 
posix_getpgid($pid); //35
?>

注意

注意: この関数は POSIX 関数ではなく、BSD および System V のシステムで共通な関数です。 使用するシステムがこの関数をサポートしていない場合は、 PHP のコンパイル時にこの関数は組み込まれません。 この関数が使用可能かどうかを調べるには、function_exists() を使用します。

参考



add a note add a note User Contributed Notes
posix_getpgid
bozo_z_clown at yahoo dot com
03-Feb-2008 12:07
posix_getpgid() returns NULL if the given pid doesn't exist and can therefore be used to determine if a particular pid refers to an existing process.  Beware, however, that pids are recycled so this method can result in false positives.

posix_getpgrp> <posix_getlogin
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites