[PATCH 2/2] posix_spawn.3: Clarify by using name of steps rather than syscalls

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

 



The implementation of the fork() step in posix_spawn(2) relies on either
fork(2), vfork(2) or clone(2) depending on the version of the
glibc and the arguments passed to posix_spawn(2).

It is sometimes ambiguous whether, when we are mentioning "fork(2)", we
are referring to the fork() step or the actual fork(2) syscall.

This patch hopefully avoids the ambiguity by replacing confusing
occurrences by "the xxx() step" where appropriate.

Signed-off-by: Olivier Gayot <olivier.gayot@xxxxxxxxxxx>
---
 man3/posix_spawn.3 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/man3/posix_spawn.3 b/man3/posix_spawn.3
index 9cc5a63d5..83ae6cb7e 100644
--- a/man3/posix_spawn.3
+++ b/man3/posix_spawn.3
@@ -220,10 +220,10 @@ the requested file.
 .PP
 .SS pre-exec() step: housekeeping
 In between the
-.BR fork (2)
+.BR fork()
 and the
-.BR exec (3),
-a child process may need to perform a set of housekeeping actions.
+.BR exec()
+steps, a child process may need to perform a set of housekeeping actions.
 The
 .BR posix_spawn ()
 and
@@ -466,8 +466,8 @@ and
 place the PID of the child process in
 .IR pid ,
 and return 0.
-If there is an error before or during the
-.BR fork (2),
+If there is an error during the
+.BR fork() step,
 then no child is created,
 the contents of
 .IR *pid
-- 
2.19.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