Pidfd: Difference between revisions
No edit summary |
|||
| Line 17: | Line 17: | ||
==[[Glibc]]== | ==[[Glibc]]== | ||
GNU libc added pidfd system call support in 2.36. Glibc 2.39 added | 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> | ||
Also added was <tt>pidfd_getpid(3)</tt>: | |||
* <tt>pid_t pidfd_getpid(3)</tt>: get the PID from a pidfd | * <tt>pid_t pidfd_getpid(3)</tt>: get the PID from a pidfd | ||