[PATCH/RFC] popen.3: change wait4(2) references to wait(2) family

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mike Frysinger <vapier@xxxxxxxxxxxx>

Since wait4(2) is deprecated and people should use waitpid(2) instead,
and the specific wait function used is largely an internal detail,
update the references to talk about the wait "family" of functions.

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 man3/popen.3 | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/man3/popen.3 b/man3/popen.3
index bfa88f522665..5be8b783909e 100644
--- a/man3/popen.3
+++ b/man3/popen.3
@@ -92,8 +92,9 @@ streams are block buffered by default.
 The
 .BR pclose ()
 function waits for the associated process to terminate and returns the exit
-status of the command as returned by
-.BR wait4 (2).
+status of the command as returned by one of the
+.BR wait (2)
+family of calls.
 .SH RETURN VALUE
 .BR popen ():
 on success, returns a pointer to an open stream that
@@ -106,15 +107,15 @@ calls fail, or if the function cannot allocate memory,
 NULL is returned.
 .PP
 .BR pclose ():
-on success, returns the exit status of the command; if
+on success, returns the exit status of the command; if one of the
 .\" These conditions actually give undefined results, so I commented
 .\" them out.
 .\" .I stream
 .\" is not associated with a "popen()ed" command, if
 .\".I stream
 .\" already "pclose()d", or if
-.BR wait4 (2)
-returns an error, or some other error is detected,
+.BR wait (2)
+family of calls returns an error, or some other error is detected,
 \-1 is returned.
 .PP
 On failure, both functions set
@@ -201,7 +202,7 @@ The only hint is an exit status of 127.
 .BR sh (1),
 .BR fork (2),
 .BR pipe (2),
-.BR wait4 (2),
+.BR wait (2),
 .BR fclose (3),
 .BR fflush (3),
 .BR fopen (3),
-- 
2.38.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux