From: Godmar Back <godmar@gmail.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: Libc-help <libc-help@sourceware.org>
Subject: Re: supporting terminal ownership assignment (tcsetpgrp()) in posix_spawn
Date: Fri, 11 Jun 2021 19:58:26 -0400 [thread overview]
Message-ID: <CAB4+JYJ4KW3oJTWAU5=1pwxO-XNTNQOXZq+MbgH2spqH=fJV_A@mail.gmail.com> (raw)
In-Reply-To: <acc8e509-e388-bcda-f233-51283dd84883@linaro.org>
On Fri, Jun 11, 2021 at 9:45 AM Adhemerval Zanella <
adhemerval.zanella@linaro.org> wrote:
>
> So maybe this following:
>
> int posix_spawnattr_tcsetpgrp_np (posix_spawnattr_t *__attr, int fd);
>
> Similar to tcgetpgrp, it make the process group of the created process
> the
> foreground process group on the terminal associated to FD. It is similar
> to tcsetpgrp(), where FD must be controlling terminal of the calling
> process,
> and still be associated with its session.
>
> It can be used along with POSIX_SPAWN_SETPGROUP to make the created
> process
> a new group leader to be used as the process group.
>
>
As I stated before, that would be fine, and the caller in most cases will
likely already have an open file descriptor referring to their controlling
terminal.
prev parent reply other threads:[~2021-06-11 23:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-03 13:58 Godmar Back
2021-06-07 21:04 ` Adhemerval Zanella
2021-06-07 21:23 ` Godmar Back
2021-06-07 21:36 ` Adhemerval Zanella
2021-06-07 23:57 ` Godmar Back
2021-06-08 13:50 ` Adhemerval Zanella
2021-06-08 14:37 ` Godmar Back
2021-06-08 16:42 ` Adhemerval Zanella
2021-06-08 22:11 ` Godmar Back
2021-06-09 6:41 ` Florian Weimer
2021-06-09 12:00 ` Adhemerval Zanella
2021-06-09 13:12 ` Godmar Back
2021-06-11 13:45 ` Adhemerval Zanella
2021-06-11 23:58 ` Godmar Back [this message]
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='CAB4+JYJ4KW3oJTWAU5=1pwxO-XNTNQOXZq+MbgH2spqH=fJV_A@mail.gmail.com' \
--to=godmar@gmail.com \
--cc=adhemerval.zanella@linaro.org \
--cc=libc-help@sourceware.org \
/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).