diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-04-21 10:40:56 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-04-25 08:51:12 -0300 |
commit | daeb1fa2e1b33323e719015f5f546988bd4cc73b (patch) | |
tree | c09f990c8f116d298a1168c6b9620d94cb2ba1c1 /posix/spawn.h | |
parent | 9581e76dbb4a8dad8a4493ef6833685153edd1d9 (diff) | |
download | glibc-daeb1fa2e1b33323e719015f5f546988bd4cc73b.tar.gz glibc-daeb1fa2e1b33323e719015f5f546988bd4cc73b.tar.xz glibc-daeb1fa2e1b33323e719015f5f546988bd4cc73b.zip |
[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.
Diffstat (limited to 'posix/spawn.h')
-rw-r--r-- | posix/spawn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/posix/spawn.h b/posix/spawn.h index 36e3867e17..a1154a3cdf 100644 --- a/posix/spawn.h +++ b/posix/spawn.h @@ -59,6 +59,7 @@ typedef struct #define POSIX_SPAWN_SETSCHEDULER 0x20 #ifdef __USE_GNU # define POSIX_SPAWN_USEVFORK 0x40 +# define POSIX_SPAWN_SETSID 0x80 #endif |