reference/pcntl/functions/pcntl-wait.xml
7d05fb0d2022805b44a39bafabca8e85e96659cf
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xml:id='function.pcntl-wait' xmlns="http://docbook.org/ns/docbook">
3
+
<refentry xml:id="function.pcntl-wait" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>pcntl_wait</refname>
6
6
<refpurpose>Waits on or returns the status of a forked child</refpurpose>
...
...
@@ -11,8 +11,8 @@
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>pcntl_wait</methodname>
13
13
<methodparam><type>int</type><parameter role="reference">status</parameter></methodparam>
14
-
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
15
-
<methodparam choice="opt"><type>array</type><parameter role="reference">rusage</parameter></methodparam>
14
+
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
15
+
<methodparam choice="opt"><type>array</type><parameter role="reference">resource_usage</parameter><initializer>[]</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
The wait function suspends execution of the current process until a
...
...
@@ -26,8 +26,8 @@
26
26
<note>
27
27
<para>
28
28
This function is equivalent to calling <function>pcntl_waitpid</function>
29
-
with a <literal>-1</literal> <parameter>pid</parameter> and no
30
-
<parameter>options</parameter>.
29
+
with a <literal>-1</literal> <parameter>process_id</parameter> and no
30
+
<parameter>flags</parameter>.
31
31
</para>
32
32
</note>
33
33
</refsect1>
...
...
@@ -53,18 +53,18 @@
53
53
</listitem>
54
54
</varlistentry>
55
55
<varlistentry>
56
-
<term><parameter>options</parameter></term>
56
+
<term><parameter>flags</parameter></term>
57
57
<listitem>
58
58
<para>
59
59
If wait3 is available on your system (mostly BSD-style systems), you can
60
-
provide the optional <parameter>options</parameter> parameter. If this
60
+
provide the optional <parameter>flags</parameter> parameter. If this
61
61
parameter is not provided, wait will be used for the system call. If
62
-
wait3 is not available, providing a value for <parameter>options
63
-
</parameter> will have no effect. The value of <parameter>options
64
-
</parameter> is the value of zero or more of the following two constants
62
+
wait3 is not available, providing a value for <parameter>flags</parameter>
63
+
will have no effect. The value of <parameter>flags</parameter>
64
+
is the value of zero or more of the following two constants
65
65
<literal>OR</literal>'ed together:
66
66
<table>
67
-
<title>Possible values for <parameter>options</parameter></title>
67
+
<title>Possible values for <parameter>flags</parameter></title>
68
68
<tgroup cols="2">
69
69
<tbody>
70
70
<row>
...
...
@@ -117,7 +117,6 @@
117
117
</refsect1>
118
118

119
119
</refentry>
120
-

121
120
<!-- Keep this comment at the end of the file
122
121
Local variables:
123
122
mode: sgml
124
123