posix_spawn.3: Document the POSIX_SPAWN_SETSID attribute

Since glibc 2.26, posix_spawn (2) function accepts the
POSIX_SPAWN_SETSID flag. This flag has been accepted by POSIX and
should be added to the next major revision. The current support
can be enabled with _GNU_SOURCE.

Upstream commit in glibc.git:

  daeb1fa2e1 [BZ 21340] add support for POSIX_SPAWN_SETSID

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>
This commit is contained in:
Olivier Gayot 2018-10-16 21:37:51 +02:00 committed by Michael Kerrisk
parent 0b78e0f5f2
commit fa0d6e6433
1 changed files with 14 additions and 0 deletions

View File

@ -394,6 +394,20 @@ instead of
The
.B _GNU_SOURCE
feature test macro must be defined to obtain the definition of this contant.
.TP
.BR POSIX_SPAWN_SETSID " (since glibc 2.26)"
If this flag is set,
the child process shall create a new session and become the session leader.
The child process shall also become the process group leader of the new process
group in the session (see
.BR setsid (2)).
The
.B _GNU_SOURCE
feature test macro must be defined to obtain the definition of this contant.
.\" This flag has been accepted in POSIX, see:
.\" http://austingroupbugs.net/view.php?id=1044
.\" and has been implemented in glibc since version 2.26
.\" commit daeb1fa2e1b33323e719015f5f546988bd4cc73b
.PP
If
.I attrp