[PATCH][BZ 21340] add support for POSIX_SPAWN_SETSID

Florian Weimer fweimer@redhat.com
Mon Apr 3 19:12:00 GMT 2017


On 04/01/2017 04:29 PM, daurnimator wrote:
> diff --git a/posix/spawn.h b/posix/spawn.h
> index 36e3867e17..8d2ace1b87 100644
> --- a/posix/spawn.h
> +++ b/posix/spawn.h
> @@ -60,6 +60,7 @@ typedef struct
>  #ifdef __USE_GNU
>  # define POSIX_SPAWN_USEVFORK		0x40
>  #endif
> +#define POSIX_SPAWN_SETSID		0x80
>

Doesn't this add the flag to past POSIX versions?

I'd prefer if there was a test case for the new functionality, perhaps 
using the getsid function.

I wonder if we should add a new symbol version for 
posix_spawnattr_setflags, so that applications which do not perform 
error checking for the function call fail in a predictable manner.

Thanks,
Florian



More information about the Libc-alpha mailing list