mirror of
https://github.com/php/doc-zh.git
synced 2026-03-24 07:02:15 +01:00
* Delete entities.functions.xml * Update escapeshellarg.xml * Update escapeshellcmd.xml * Update exec.xml * Update proc-close.xml * Update proc-get-status.xml * Update proc-get-status.xml * Update proc-nice.xml * Update proc-terminate.xml * Update shell-exec.xml * Update system.xml * Update exec.xml * Update proc-open.xml * Update escapeshellarg.xml * Update escapeshellcmd.xml * Update exec.xml * Update proc-get-status.xml * Update proc-nice.xml * Update proc-terminate.xml * Update proc-terminate.xml * Update shell-exec.xml * Update system.xml
73 lines
2.2 KiB
XML
73 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 350d95443aeb0ea8751d71f262aac56d3ad48f83 Maintainer: yuanyuqiang Status: ready -->
|
|
<!-- CREDITS: mowangjuanzi -->
|
|
<!-- splitted from ./en/functions/exec.xml, last change in rev 1.28 -->
|
|
<refentry xml:id='function.proc-close' xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>proc_close</refname>
|
|
<refpurpose>关闭由 <function>proc_open</function> 打开的进程并且返回进程退出码</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>proc_close</methodname>
|
|
<methodparam><type>resource</type><parameter>process</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>proc_close</function> 同 <function>pclose</function> 函数类似,只是
|
|
<function>proc_close</function> 只能用来关闭由 <function>proc_open</function>
|
|
函数打开的进程。<function>proc_close</function>
|
|
函数会等待进程终止,并返回它的退出代码。调用此函数时,为避免死锁,该进程打开的管道将关闭——在管道处于打开状态时,子进程将不能退出。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>process</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
要关闭的由 <function>proc_open</function> 打开的 <type>resource</type> 。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
返回进程的终止状态码。
|
|
如果发生错误,将返回 <literal>-1</literal>。
|
|
</para>
|
|
¬e.sigchild;
|
|
</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
|
|
-->
|