public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Calling setsid as part of posix_spawn
@ 2016-04-20  5:40 daurnimator
  0 siblings, 0 replies; only message in thread
From: daurnimator @ 2016-04-20  5:40 UTC (permalink / raw)
  To: libc-alpha

I'm hoping that posix_spawn could gain a way to call setsid().

At the moment, there is no way to create a process via posix_spawn
that is part of a different session.
This is required if you want the new process to e.g. have a different
controlling TTY.

I propose adding a new flag to posix_spawn: `POSIX_SPAWN_SETSID` that,
when set, calls setsid() in the child.
This should happen before opening new file descriptors, as we want to
be able to open our new controlling TTY.

I've created an issue with the austin group tracker:
http://austingroupbugs.net/view.php?id=1044

Regards,
Daurn.

PS, I'm not subbed to list; please make sure you CC me on replies!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-20  5:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-20  5:40 Calling setsid as part of posix_spawn daurnimator

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).