diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-11-06 05:58:31 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-11-06 05:58:31 (GMT) |
commit | 5c0c325453a175350e3c18ebb10cc10c37f9595c (patch) | |
tree | fb7bdfa2f63154fe28d31b015d44d409786e1132 /Doc/library/os.rst | |
parent | 6c4c45efaeb40f4f837570f57d90a0b3429c6ae9 (diff) | |
download | cpython-5c0c325453a175350e3c18ebb10cc10c37f9595c.zip cpython-5c0c325453a175350e3c18ebb10cc10c37f9595c.tar.gz cpython-5c0c325453a175350e3c18ebb10cc10c37f9595c.tar.bz2 |
closes bpo-38713: Expose P_PIDFD in os if it's defined. (GH-17071)
https://bugs.python.org/issue38713
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r-- | Doc/library/os.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 9c907a7..48bd6b9 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3921,7 +3921,8 @@ written in Python, such as a mail server's external command delivery program. .. function:: waitid(idtype, id, options) Wait for the completion of one or more child processes. - *idtype* can be :data:`P_PID`, :data:`P_PGID` or :data:`P_ALL`. + *idtype* can be :data:`P_PID`, :data:`P_PGID`, :data:`P_ALL`, or + :data:`P_PIDFD` on Linux. *id* specifies the pid to wait on. *options* is constructed from the ORing of one or more of :data:`WEXITED`, :data:`WSTOPPED` or :data:`WCONTINUED` and additionally may be ORed with @@ -3946,6 +3947,15 @@ written in Python, such as a mail server's external command delivery program. .. versionadded:: 3.3 +.. data:: P_PIDFD + + This is a Linux-specific *idtype* that indicates that *id* is a file + descriptor that refers to a process. + + .. availability:: Linux 5.4+ + + .. versionadded:: 3.9 + .. data:: WEXITED WSTOPPED WNOWAIT |