[PATCH v2 2/4] posix_spawn.3: Document POSIX_SPAWN_USEVFORK

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

 



Added a few lines about POSIX_SPAWN_USEVFORK so that it appears clearly
that since glibc 2.24, the flag has no effect.

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

diff --git a/man3/posix_spawn.3 b/man3/posix_spawn.3
index e8c0de172..8badb43bf 100644
--- a/man3/posix_spawn.3
+++ b/man3/posix_spawn.3
@@ -382,6 +382,18 @@ the child's process group ID is made the same as its process ID.
 If the
 .B POSIX_SPAWN_SETPGROUP
 flag is not set, the child inherits the parent's process group ID.
+.TP
+.B POSIX_SPAWN_USEVFORK
+Since glibc 2.24, this flag has no effect.
+On older implementations, setting this flag forces the
+.BR fork()
+step to use
+.BR vfork (2)
+instead of
+.BR fork (2).
+The
+.B _GNU_SOURCE
+feature test macro must be defined to obtain the definition of this contant.
 .PP
 If
 .I attrp
-- 
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