diff options
| author | Benjamin Peterson <benjamin@python.org> | 2019-11-05 19:21:29 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-05 19:21:29 -0800 |
| commit | 6c4c45efaeb40f4f837570f57d90a0b3429c6ae9 (patch) | |
| tree | 4abd982b8454d295f7f0c16c2ab0ab94014ce584 /Doc/library/os.rst | |
| parent | 56698d57691af2272f695f8c17c835ed99545cde (diff) | |
| download | cpython-git-6c4c45efaeb40f4f837570f57d90a0b3429c6ae9.tar.gz | |
bpo-38692: Add os.pidfd_open. (GH-17063)
Diffstat (limited to 'Doc/library/os.rst')
| -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 8e9d9e6f03..9c907a7ee5 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 |
