From: Florian Weimer <fweimer@redhat.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>,
libc-alpha@sourceware.org
Cc: Zack Weinberg <zackw@panix.com>
Subject: Re: [PATCH v3][BZ 21340] add support for POSIX_SPAWN_SETSID
Date: Fri, 21 Apr 2017 14:24:00 -0000 [thread overview]
Message-ID: <c9d4e975-da57-5651-75d5-41e81857a8ca@redhat.com> (raw)
In-Reply-To: <a76bbb82-02c8-95fc-d49f-7f474f9179c2@linaro.org>
On 04/21/2017 04:13 PM, Adhemerval Zanella wrote:
> * conform/data/spawn.h-data: Add POSIX_SPAWN_SETSID flag.
I think this has to go away ...
> diff --git a/posix/spawn.h b/posix/spawn.h
> index 36e3867..8d2ace1 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
... because this has to be governed by __GNU_SOURCE.
> +static int
> +do_test (void)
> +{
> + pid_t sid, child_sid;
> + int res;
> +
> + /* Current session ID. */
> + sid = getsid(0);
> + if (sid == (pid_t) -1)
> + FAIL_EXIT1 ("getsid (0): %m");
> +
> + posix_spawnattr_t attrp;
> + posix_spawnattr_init (&attrp);
> + if (posix_spawnattr_setflags (&attrp, POSIX_SPAWN_SETSID))
> + FAIL_EXIT1 ("posix_spawnattr_setflags: %m");
Please run the test twice, once with setting POSIX_SPAWN_SETSID, and
once without.
Thanks,
Florian
next prev parent reply other threads:[~2017-04-21 14:24 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-05 5:41 daurnimator
2017-04-05 8:34 ` Florian Weimer
2017-04-05 11:01 ` Daurnimator
2017-04-06 12:37 ` Florian Weimer
2017-04-06 13:22 ` Zack Weinberg
2017-04-06 13:23 ` Florian Weimer
2017-04-06 13:24 ` Zack Weinberg
2017-04-07 12:27 ` Daurnimator
2017-04-07 13:46 ` Zack Weinberg
2017-04-09 13:22 ` Daurnimator
2017-04-21 5:04 ` Daurnimator
2017-04-21 12:39 ` Adhemerval Zanella
2017-04-21 14:13 ` Adhemerval Zanella
2017-04-21 14:24 ` Florian Weimer [this message]
2017-04-21 18:29 ` Adhemerval Zanella
2017-04-21 19:53 ` Joseph Myers
2017-04-21 20:43 ` Adhemerval Zanella
2017-04-21 20:04 ` Florian Weimer
2017-04-21 20:43 ` Adhemerval Zanella
2017-04-21 20:47 ` Florian Weimer
2017-04-21 18:24 ` Joseph Myers
2017-04-21 18:26 ` Adhemerval Zanella
2017-04-05 12:31 ` Joseph Myers
2017-04-05 12:44 ` Joseph Myers
2017-04-05 12:58 ` Szabolcs Nagy
2017-04-05 15:02 ` Joseph Myers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c9d4e975-da57-5651-75d5-41e81857a8ca@redhat.com \
--to=fweimer@redhat.com \
--cc=adhemerval.zanella@linaro.org \
--cc=libc-alpha@sourceware.org \
--cc=zackw@panix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).