<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.posix-setpgid.php',
    1 => 'posix_setpgid',
    2 => 'Set process group id for job control',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'POSIX Functions',
  ),
  'prev' => 
  array (
    0 => 'function.posix-setgid.php',
    1 => 'posix_setgid',
  ),
  'next' => 
  array (
    0 => 'function.posix-setrlimit.php',
    1 => 'posix_setrlimit',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/posix/functions/posix-setpgid.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-setpgid" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">posix_setpgid</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">posix_setpgid</span> &mdash; <span class="dc-title">Set process group id for job control</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.posix-setpgid-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>posix_setpgid</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="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$process_group_id</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Let the process <code class="parameter">process_id</code> join the process group
   <code class="parameter">process_group_id</code>. 
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.posix-setpgid-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">process_id</code></dt>
     <dd>
      <p class="para">
       The process id.
      </p>
     </dd>
    
    
     <dt><code class="parameter">process_group_id</code></dt>
     <dd>
      <p class="para">
       The process group id.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.posix-setpgid-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.posix-setpgid-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li>
     See POSIX.1 and the setsid(2) manual page on the POSIX system for more
     information on process groups and job control.
    </li>
   </ul>
  </p>
 </div>


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