8000 added note about fileno for setns · python/cpython@8845a86 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8845a86

Browse files
committed
added note about fileno for setns
1 parent 5115c8a commit 8845a86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/os.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ process and user.
579579
:c:func:`pidfd_open`. In this case :func:`setns` reassociates the calling thread
580580
into one or more of the same namespaces as the thread referred to by *fd* subject
581581
to any constraints imposed by the *nstype* which is a bit mask specified by ORing together one or more of the ``CLONE_NEW*`` constants. the caller's memberships in unspecified namespaces are left unchanged.
582+
*fd* can be any object with a :meth:`fileno()` method, or a raw file descriptor.
582583

583584
This example reassociates the thread with the ``init`` process' network namespace::
584585

0 commit comments

Comments
 (0)
0