Skip to content

Commit 46fa9e4

Browse files
authored
proc_close: "waits", not "closes". Also grammar fix in Returns.
The function waits (waitpid) for a process to terminate, it does not do any closing. The description is a little misleading.
1 parent 13cc59c commit 46fa9e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reference/exec/functions/proc-close.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<refentry xml:id='function.proc-close' xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>proc_close</refname>
7-
<refpurpose>Close a process opened by <function>proc_open</function> and return the exit code of that process</refpurpose>
7+
<refpurpose>Wait for a process opened by <function>proc_open</function> to close and return the exit code of that process</refpurpose>
88
</refnamediv>
99

1010
<refsect1 role="description">
@@ -46,7 +46,7 @@
4646
&reftitle.returnvalues;
4747
<para>
4848
Returns the termination status of the process that was run. In case of
49-
an error then <literal>-1</literal> is returned.
49+
an error <literal>-1</literal> is returned.
5050
</para>
5151
&note.sigchild;
5252
</refsect1>

0 commit comments

Comments
 (0)