<?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 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.pcntl-sigtimedwait.php',
    1 => 'pcntl_sigtimedwait',
    2 => 'Waits for signals, with a timeout',
  ),
  'up' => 
  array (
    0 => 'ref.pcntl.php',
    1 => 'PCNTL Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.pcntl-sigprocmask.php',
    1 => 'pcntl_sigprocmask',
  ),
  'next' => 
  array (
    0 => 'function.pcntl-sigwaitinfo.php',
    1 => 'pcntl_sigwaitinfo',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pcntl/functions/pcntl-sigtimedwait.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pcntl-sigtimedwait" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pcntl_sigtimedwait</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">pcntl_sigtimedwait</span> &mdash; <span class="dc-title">Waits for signals, with a timeout</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.pcntl-sigtimedwait-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pcntl_sigtimedwait</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$signals</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$info</code><span class="initializer"> = []</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$seconds</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$nanoseconds</code><span class="initializer"> = 0</span></span><br>): <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">
   The <span class="function"><strong>pcntl_sigtimedwait()</strong></span> function operates in exactly
   the same way as <span class="function"><a href="function.pcntl-sigwaitinfo.php" class="function">pcntl_sigwaitinfo()</a></span> except that it takes
   two additional parameters, <code class="parameter">seconds</code> and
   <code class="parameter">nanoseconds</code>, which enable an upper bound to be placed
   on the time for which the script is suspended.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pcntl-sigtimedwait-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">signals</code></dt>
     <dd>
      <p class="para">
       Array of signals to wait for.
      </p>
     </dd>
    
    
     <dt><code class="parameter">info</code></dt>
     <dd>
      <p class="para">
       The <code class="parameter">info</code> is set to an array containing
       information about the signal. See
       <span class="function"><a href="function.pcntl-sigwaitinfo.php" class="function">pcntl_sigwaitinfo()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">seconds</code></dt>
     <dd>
      <p class="para">
       Timeout in seconds.
      </p>
     </dd>
    
    
     <dt><code class="parameter">nanoseconds</code></dt>
     <dd>
      <p class="para">
       Timeout in nanoseconds.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pcntl-sigtimedwait-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   <span class="function"><strong>pcntl_sigtimedwait()</strong></span> returns a signal number on success,  o <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.pcntl-sigtimedwait-changelog">
  <h3 class="title">Log delle modifiche</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versione</th>
      <th>Descrizione</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       A <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> is thrown if <code class="parameter">signal</code>
       is empty.
      </td>
     </tr>

     <tr>
      <td>8.4.0</td>
      <td>
       A <span class="classname"><a href="class.typeerror.php" class="classname">TypeError</a></span> is thrown if <code class="parameter">signal</code>
       value is not an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
      </td>
     </tr>

     <tr>
      <td>8.4.0</td>
      <td>
       A <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> is thrown if <code class="parameter">signal</code>
       value is invalid.
      </td>
     </tr>

     <tr>
      <td>8.4.0</td>
      <td>
       A <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> is thrown if <code class="parameter">seconds</code>
       value is less than <code class="literal">0</code>.
      </td>
     </tr>

     <tr>
      <td>8.4.0</td>
      <td>
       A <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> is thrown if <code class="parameter">nanoseconds</code>
       value is less than <code class="literal">0</code>.
      </td>
     </tr>

     <tr>
      <td>8.4.0</td>
      <td>
       A <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> is thrown if both <code class="parameter">seconds</code> and
       <code class="parameter">nanoseconds</code> values are <code class="literal">0</code>.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.pcntl-sigtimedwait-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.pcntl-sigprocmask.php" class="function" rel="rdfs-seeAlso">pcntl_sigprocmask()</a> - Sets and retrieves blocked signals</span></li>
    <li><span class="function"><a href="function.pcntl-sigwaitinfo.php" class="function" rel="rdfs-seeAlso">pcntl_sigwaitinfo()</a> - Waits for signals</span></li>
   </ul>
  </p>
 </div>


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