<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pcntl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.pcntl-wstopsig.php',
    1 => 'pcntl_wstopsig',
    2 => 'Returns the signal which caused the child to stop',
  ),
  'up' => 
  array (
    0 => 'ref.pcntl.php',
    1 => 'PCNTL Functions',
  ),
  'prev' => 
  array (
    0 => 'function.pcntl-wifstopped.php',
    1 => 'pcntl_wifstopped',
  ),
  'next' => 
  array (
    0 => 'function.pcntl-wtermsig.php',
    1 => 'pcntl_wtermsig',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pcntl/functions/pcntl-wstopsig.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pcntl-wstopsig" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pcntl_wstopsig</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">pcntl_wstopsig</span> &mdash; <span class="dc-title">Returns the signal which caused the child to stop</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.pcntl-wstopsig-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pcntl_wstopsig</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$status</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">
   Returns the number of the signal which caused the child to stop.
   This function is only useful if
   <span class="function"><a href="function.pcntl-wifstopped.php" class="function">pcntl_wifstopped()</a></span> returned <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pcntl-wstopsig-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">status</code></dt>
     <dd>
      <p class="para">The <code class="parameter">status</code>
parameter is the status parameter supplied to a successful
call to <span class="function"><a href="function.pcntl-waitpid.php" class="function">pcntl_waitpid()</a></span>.</p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pcntl-wstopsig-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the signal number.
   If the functionality is not supported by the OS, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> is returned.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.pcntl-wstopsig-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.pcntl-waitpid.php" class="function" rel="rdfs-seeAlso">pcntl_waitpid()</a> - Waits on or returns the status of a forked child</span></li>
    <li><span class="function"><a href="function.pcntl-wifstopped.php" class="function" rel="rdfs-seeAlso">pcntl_wifstopped()</a> - Checks whether the child process is currently stopped</span></li>
   </ul>
  </p>
 </div>


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