You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Doc/library/os.rst
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -579,6 +579,7 @@ process and user.
579
579
:c:func:`pidfd_open`. In this case :func:`setns` reassociates the calling thread
580
580
into one or more of the same namespaces as the thread referred to by *fd* subject
581
581
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.
582
583
583
584
This example reassociates the thread with the ``init`` process' network namespace::
0 commit comments