<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.3 $ --> <refentry id='function.proc-terminate'> <refnamediv> <refname>proc_terminate</refname> <refpurpose> kills a process opened by proc_open </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>proc_terminate</methodname> <methodparam><type>resource</type><parameter>process</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>signal</parameter></methodparam> </methodsynopsis> <para> Signals a <parameter>process</parameter> (created using <function>proc_open</function>) that it should terminate. <function>proc_terminate</function> returns immediately and does not wait for the process to terminate. </para> <para> The optional <parameter>signal</parameter> is only useful on <acronym>POSIX</acronym> operating systems; you may specify a signal to send to the process using the <literal>kill(2)</literal> system call. The default is <literal>SIGTERM</literal>. </para> <para> <function>proc_terminate</function> allows you terminate the process and continue with other tasks. You may poll the process (to see if it has stopped yet) by using the <function>proc_get_status</function> function. </para> <para> See also <function>proc_open</function>, <function>proc_close</function>, and <function>proc_get_status</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->