<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.posix.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.posix-getpgid.php',
    1 => 'posix_getpgid',
    2 => 'Retourne l\'id du groupe de processus',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'Fonctions POSIX',
  ),
  'prev' => 
  array (
    0 => 'function.posix-getlogin.php',
    1 => 'posix_getlogin',
  ),
  'next' => 
  array (
    0 => 'function.posix-getpgrp.php',
    1 => 'posix_getpgrp',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/posix/functions/posix-getpgid.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-getpgid" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">posix_getpgid</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">posix_getpgid</span> &mdash; <span class="dc-title">Retourne l&#039;id du groupe de processus</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.posix-getpgid-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>posix_getpgid</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$process_id</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Retourne l&#039;id du groupe de processus pour le
   processus <code class="parameter">process_id</code> ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.posix-getpgid-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">process_id</code></dt>
     <dd>
      <p class="para">
       L&#039;identifiant du processus.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.posix-getpgid-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne l&#039;identifiant, sous la forme d&#039;un <a href="language.types.integer.php" class="link">entier</a>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.posix-getpgid-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Exemple avec <span class="function"><strong>posix_getpgid()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$pid </span><span style="color: #007700">= </span><span style="color: #0000BB">posix_getppid</span><span style="color: #007700">();<br />echo </span><span style="color: #0000BB">posix_getpgid</span><span style="color: #007700">(</span><span style="color: #0000BB">$pid</span><span style="color: #007700">); </span><span style="color: #FF8000">//35<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.posix-getpgid-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Ce n&#039;est pas une fonction POSIX, mais elle est commune sous BSD
    et les systèmes System V. Si le système ne supporte pas cette fonction,
    alors elle ne sera pas incluse lors de la compilation. Il est recommandé de
    vérifier si cette fonction existe avec la fonction
    <span class="function"><a href="function.function-exists.php" class="function">function_exists()</a></span>.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.posix-getpgid-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.posix-getppid.php" class="function" rel="rdfs-seeAlso">posix_getppid()</a> - Retourne l'identifiant du processus parent</span></li>
    <li>man page SETPGID(2)</li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>