diff options
| author | Olivier Gayot <olivier.gayot@sigexec.com> | 2018-10-16 21:37:49 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-04-17 12:21:53 +0200 |
| commit | 8b5b47e9833fefca84f4c3118354bd681ae17e91 (patch) | |
| tree | 50db4dbb8d3b560eae112100b87bf7bb64bfc4cf /man3 | |
| parent | 0c76bb7293d2b8c29601cff60a14b20ca1c659c5 (diff) | |
| download | man-pages-8b5b47e9833fefca84f4c3118354bd681ae17e91.tar.gz | |
posix_spawn.3: Document POSIX_SPAWN_USEVFORK
Added a few lines about POSIX_SPAWN_USEVFORK so that it appears
clearly that since glibc 2.24, the flag has no effect.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/posix_spawn.3 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/man3/posix_spawn.3 b/man3/posix_spawn.3 index 498228f018..1a229cfc8f 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 |
