[PATCH v2 4/4] posix_spawn.3: Document the POSIX_SPAWN_SETSID attribute

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

 



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

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

diff --git a/man3/posix_spawn.3 b/man3/posix_spawn.3
index 72e7509d8..93f1124a1 100644
--- a/man3/posix_spawn.3
+++ b/man3/posix_spawn.3
@@ -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
-- 
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