From 3b4861e432fa99f5e169c3956f6e8e4d861c6e64 Mon Sep 17 00:00:00 2001 From: Ryan Hancock Date: Thu, 9 Sep 2021 20:05:48 -0400 Subject: [PATCH 1/2] Clarification of default socket flags used by Rust --- library/std/src/net/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/std/src/net/mod.rs b/library/std/src/net/mod.rs index d814e9b25ba9a..7a84b07fdebc8 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")] From a10f0954c0edb478a8efd4ac000b2abd3cf06ff5 Mon Sep 17 00:00:00 2001 From: Ryan Hancock Date: Thu, 9 Sep 2021 20:11:38 -0400 Subject: [PATCH 2/2] Run fmt --- library/std/src/net/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/net/mod.rs b/library/std/src/net/mod.rs index 7a84b07fdebc8..264d74fefc5ef 100644 --- a/library/std/src/net/mod.rs +++ b/library/std/src/net/mod.rs @@ -15,7 +15,7 @@ //! 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 +//! 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.