This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ 21340] add support for POSIX_SPAWN_SETSID
- From: Florian Weimer <fweimer at redhat dot com>
- To: daurnimator <quae at daurnimator dot com>, libc-alpha at sourceware dot org
- Date: Mon, 3 Apr 2017 21:12:52 +0200
- Subject: Re: [PATCH][BZ 21340] add support for POSIX_SPAWN_SETSID
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 662EDC04D288
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 662EDC04D288
- References: <20170401142954.23142-1-quae@daurnimator.com>
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