diff options
| author | Ryan Hancock <krhancoc@uwaterloo.ca> | 2021-09-09 20:05:48 -0400 |
|---|---|---|
| committer | Ryan Hancock <krhancoc@uwaterloo.ca> | 2021-09-09 20:05:48 -0400 |
| commit | 3b4861e432fa99f5e169c3956f6e8e4d861c6e64 (patch) | |
| tree | 479a3577dfb4f5ac463600b41545e48c5a361b5b /library/std/src/net/mod.rs | |
| parent | 497ee321af3b8496eaccd7af7b437f18bab81abf (diff) | |
| download | rust-3b4861e432fa99f5e169c3956f6e8e4d861c6e64.tar.gz rust-3b4861e432fa99f5e169c3956f6e8e4d861c6e64.zip | |
Clarification of default socket flags used by Rust
Diffstat (limited to 'library/std/src/net/mod.rs')
| -rw-r--r-- | library/std/src/net/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/net/mod.rs b/library/std/src/net/mod.rs index d814e9b25ba..7a84b07fdeb 100644 --- a/library/std/src/net/mod.rs +++ b/library/std/src/net/mod.rs @@ -14,6 +14,10 @@ //! * [`ToSocketAddrs`] is a trait that used for generic address resolution when interacting //! with networking objects like [`TcpListener`], [`TcpStream`] or [`UdpSocket`] //! * Other types are return or parameter types for various methods in this module +//! +//! Rust disables inheritance of socket objects to child processes by default when possible. For +//! example, through the use of the `CLOEXEC` flag in UNIX systems or the `HANDLE_FLAG_INHERIT` +//! flag on Windows. #![stable(feature = "rust1", since = "1.0.0")] |
