public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/30349] New: Support returning a pidfd from posix_spawn()
@ 2023-04-13 19:36 bugzilla at tecnocode dot co.uk
  2023-04-13 19:36 ` [Bug libc/30349] " bugzilla at tecnocode dot co.uk
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: bugzilla at tecnocode dot co.uk @ 2023-04-13 19:36 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30349

            Bug ID: 30349
           Summary: Support returning a pidfd from posix_spawn()
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: bugzilla at tecnocode dot co.uk
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

pidfd allows a process to keep a race-free handle to a child process, avoiding
the problem of PID recycling meaning that a pid_t no longer refers to the
process you thought it did.

We’d like to be able to use pidfds in GLib for race-free signalling of
subprocesses. GLib currently uses posix_spawn() to spawn those subprocesses,
though, and it cannot return a pidfd.

Could glibc please add a variant of posix_spawn() which returns a pidfd to the
caller? I don’t know of the best API for this, but it could either be a new
posix_spawn_with_pidfd() function, or be the existing posix_spawn() but somehow
return a pidfd via a posix_spawnattr_t.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-09-05 16:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-13 19:36 [Bug libc/30349] New: Support returning a pidfd from posix_spawn() bugzilla at tecnocode dot co.uk
2023-04-13 19:36 ` [Bug libc/30349] " bugzilla at tecnocode dot co.uk
2023-04-13 19:37 ` bugzilla at tecnocode dot co.uk
2023-04-13 20:16 ` adhemerval.zanella at linaro dot org
2023-04-13 21:00 ` adhemerval.zanella at linaro dot org
2023-04-14 13:25 ` adhemerval.zanella at linaro dot org
2023-04-14 15:00 ` adhemerval.zanella at linaro dot org
2023-04-14 15:02 ` adhemerval.zanella at linaro dot org
2023-04-18 17:59 ` adhemerval.zanella at linaro dot org
2023-04-18 21:38 ` adhemerval.zanella at linaro dot org
2023-05-15 17:01 ` bugzilla at tecnocode dot co.uk
2023-08-28 12:22 ` bluca at debian dot org
2023-09-05 16:10 ` adhemerval.zanella at linaro dot org
2023-09-05 16:17 ` bugzilla at tecnocode dot co.uk

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