ID EN
OS

pidfd_open

Python 3.11

Return a file descriptor referring to the process pid. This descriptor can be used to perform process management without races and signals. The flags argument is provided for future extensions; no flag values are currently defined.

Syntax

PYTHON
os.pidfd_open(pid, flags=0)

See Also

Availability