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

search for in the

posix_getpgrp> <posix_getlogin
Last updated: Fri, 14 Aug 2009

view this page in

posix_getpgid

(PHP 4, PHP 5)

posix_getpgidRetourne l'id du groupe de processus

Description

int posix_getpgid ( int $pid )

Retourne l'id du groupe de processus pour le processus pid .

Liste de paramètres

pid

L'identifiant du processus.

Valeurs de retour

Retourne l'identifiant, sous la forme d'un entier.

Exemples

Exemple #1 Exemple avec posix_getpgid()

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

Notes

Note: Ce n'est pas une fonction POSIX, mais elle est commune sous BSD et les systèmes Sytem V. Si votre système ne supporte pas cette fonction, alors elle ne sera pas incluse lors de la compilation. Vous devriez vérifier si cette fonction existe avec la fonction function_exists().

Voir aussi

  • posix_getppid() - Retourne l'identifiant du processus parent
  • man page SETPGID(2)



add a note add a note User Contributed Notes
posix_getpgid
bozo_z_clown at yahoo dot com
02-Feb-2008 11: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, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites