<!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>Send a signal to a process</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.posix-isatty.html">posix_isatty</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.posix-mkfifo.html">posix_mkfifo</a></div> <div class="up"><a href="ref.posix.html">POSIX Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.posix-kill" class="refentry"> <div class="refnamediv"> <h1 class="refname">posix_kill</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">posix_kill</span> — <span class="dc-title">Send a signal to a process</span></p> </div> <div class="refsect1 description" id="refsect1-function.posix-kill-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>posix_kill</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$pid</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$sig</code></span> )</div> <p class="para rdfs-comment"> Send the signal <em><code class="parameter">sig</code></em> to the process with the process identifier <em><code class="parameter">pid</code></em>. </p> </div> <div class="refsect1 parameters" id="refsect1-function.posix-kill-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">pid</code></em></span> <dd> <p class="para"> The process identifier. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">sig</code></em></span> <dd> <p class="para"> One of the <a href="pcntl.constants.html" class="link">PCNTL signals constants</a>. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.posix-kill-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 seealso" id="refsect1-function.posix-kill-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> The kill(2) manual page of the POSIX system, which contains additional information about negative process identifiers, the special pid 0, the special pid -1, and the signal number 0. </li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.posix-isatty.html">posix_isatty</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.posix-mkfifo.html">posix_mkfifo</a></div> <div class="up"><a href="ref.posix.html">POSIX Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>