mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-25 01:12:06 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@350665 c90b9560-bf6c-de11-be94-00142212c4b1
101 lines
3.0 KiB
XML
101 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 9af43469f46843451955b8926fe470a9f3d45034 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<refentry xml:id='function.proc-terminate' xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>proc_terminate</refname>
|
|
<refpurpose>
|
|
Termine un processus ouvert par <function>proc_open</function>
|
|
</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>proc_terminate</methodname>
|
|
<methodparam><type>resource</type><parameter>process</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>signal</parameter><initializer>15</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>proc_terminate</function> envoie un signal au processus
|
|
<parameter>process</parameter> (créé avec <function>proc_open</function>)
|
|
pour lui indiquer qu'il doit se terminer. <function>proc_terminate</function>
|
|
se termine immédiatement après, et n'attend pas l'arrêt réel du processus.
|
|
</para>
|
|
<para>
|
|
<function>proc_terminate</function> vous permet de conclure un processus,
|
|
et de continuer les autres tâches. Vous pouvez tester la présence de
|
|
votre processus en utilisant la fonction <function>proc_get_status</function>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>process</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
La &resource; <function>proc_open</function> qui sera fermée.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>signal</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Ce paramètre optionnel n'est utile que sur les
|
|
plates-formes <acronym>POSIX</acronym> : vous pouvez alors spécifier
|
|
un signal à envoyer au processus, en utilisant l'appel système
|
|
<literal>kill(2)</literal>. La valeur par défaut est alors
|
|
<literal>SIGTERM</literal>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retourne le code de sortie du processus.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>proc_open</function></member>
|
|
<member><function>proc_close</function></member>
|
|
<member><function>proc_get_status</function></member>
|
|
</simplelist>
|
|
</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:"~/.phpdoc/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
|
|
-->
|