[BZ 21340] add support for POSIX_SPAWN_SETSID
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 21 Apr 2017 13:40:56 +0000 (10:40 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 25 Apr 2017 11:51:12 +0000 (08:51 -0300)
commitdaeb1fa2e1b33323e719015f5f546988bd4cc73b
treec09f990c8f116d298a1168c6b9620d94cb2ba1c1
parent9581e76dbb4a8dad8a4493ef6833685153edd1d9
[BZ 21340] add support for POSIX_SPAWN_SETSID

This patch adds support for the POSIX_SPAWN_SETSID flag.

It was recently accepted by the Austin Group:
http://austingroupbugs.net/view.php?id=1044

Checked on x86_64

Daurnimator  <quae@daurnimator.com>
Adhemerval Zanella  <adhemerval.zanella@linaro.org>

[BZ #21340]
* posix/Makefile (tests): Add tst-posix_spawn-setsid to list of tests.
* posix/spawn.h: define POSIX_SPAWN_SETSID flag.
* posix/spawnattr_setflags.c (ALL_FLAGS): Add POSIX_SPAWN_SETSID to
valid flags.
* posix/tst-posix_spawn-setsid.c: Add test for POSIX_SPAWN_SETSID.
* sysdeps/mach/hurd/spawni.c (__spawni): Implementation of
POSIX_SPAWN_SETSID.
* sysdeps/posix/spawni.c (__spawni): Likewise.
* sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
* NEWS: Add note about POSIX_SPAWN_SETSID support.
ChangeLog
NEWS
posix/Makefile
posix/spawn.h
posix/spawnattr_setflags.c
posix/tst-posix_spawn-setsid.c [new file with mode: 0644]
sysdeps/mach/hurd/spawni.c
sysdeps/posix/spawni.c
sysdeps/unix/sysv/linux/spawni.c