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
docs: document close-on-exec behavior in socket try_clone methods
Document that `try_clone()` sets the close-on-exec flag on duplicated
sockets, addressing issue #47946.
On Unix, `F_DUPFD_CLOEXEC` is used to atomically duplicate the file
descriptor with the close-on-exec flag set. On Windows, the duplicated
socket is created without `HANDLE_FLAG_INHERIT`.
This affects:
- `TcpStream::try_clone()`
- `TcpListener::try_clone()`
- `UdpSocket::try_clone()`
- `UnixStream::try_clone()`
- `UnixListener::try_clone()`
- `UnixDatagram::try_clone()`
0 commit comments