Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 5075

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set an alarm clock for delivery of a signal</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.pcntl.html">PCNTL Functions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.pcntl-errno.html">pcntl_errno</a></div>
 <div class="up"><a href="ref.pcntl.html">PCNTL Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.pcntl-alarm" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pcntl_alarm</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5)</p><p class="refpurpose"><span class="refname">pcntl_alarm</span> &mdash; <span class="dc-title">Set an alarm clock for delivery of a signal</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.pcntl-alarm-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>pcntl_alarm</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$seconds</code></span>
   )</div>

  <p class="para rdfs-comment">
   Creates a timer that will send a <strong><code>SIGALRM</code></strong> signal to
   the process after the given number of seconds.
   Any call to  <span class="function"><strong>pcntl_alarm()</strong></span> will cancel any previously
   set alarm.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pcntl-alarm-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">seconds</code></em></span>
     <dd>

      <p class="para">
       The number of seconds to wait. If <em><code class="parameter">seconds</code></em> is
       zero, no new alarm is created.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pcntl-alarm-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the time in seconds that any previously scheduled alarm had
   remaining before it was to be delivered, or <em>0</em> if there
   was no previously scheduled alarm.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.pcntl.html">PCNTL Functions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.pcntl-errno.html">pcntl_errno</a></div>
 <div class="up"><a href="ref.pcntl.html">PCNTL Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>