diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-11-06 03:21:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-06 03:21:29 (GMT) |
commit | 6c4c45efaeb40f4f837570f57d90a0b3429c6ae9 (patch) | |
tree | 4abd982b8454d295f7f0c16c2ab0ab94014ce584 /Doc/library | |
parent | 56698d57691af2272f695f8c17c835ed99545cde (diff) | |
download | cpython-6c4c45efaeb40f4f837570f57d90a0b3429c6ae9.zip cpython-6c4c45efaeb40f4f837570f57d90a0b3429c6ae9.tar.gz cpython-6c4c45efaeb40f4f837570f57d90a0b3429c6ae9.tar.bz2 |
bpo-38692: Add os.pidfd_open. (GH-17063)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/os.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 8e9d9e6..9c907a7 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3539,6 +3539,19 @@ written in Python, such as a mail server's external command delivery program. .. availability:: Unix. +.. function:: pidfd_open(pid, flags=0) + + 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. + + See the :manpage:`pidfd_open(2)` man page for more details. + + .. availability:: Linux 5.3+ + .. versionadded:: 3.9 + + .. function:: plock(op) Lock program segments into memory. The value of *op* (defined in |