Pidfd: Difference between revisions
| Line 20: | Line 20: | ||
==[[Glibc]]== | ==[[Glibc]]== | ||
GNU libc added pidfd system call support in 2.36. Glibc 2.39 added two functions for pidfds, complementing <tt>posix_spawn(3)</tt>. They return pidfds rather than PIDs: | GNU libc added pidfd system call support in 2.36. Glibc 2.39 added two functions for pidfds, complementing <tt>posix_spawn(3)</tt>. They return pidfds rather than PIDs: | ||
* <tt>pidfd_spawn(3)</tt>:analogous to <tt>posix_spawn(3)</tt> | * <tt>pidfd_spawn(3)</tt>: analogous to <tt>posix_spawn(3)</tt> | ||
* <tt>pidfd_spawnp(3)</tt>: analogous to <tt>posix_spawnp(3)</tt> | * <tt>pidfd_spawnp(3)</tt>: analogous to <tt>posix_spawnp(3)</tt> | ||