Skip to content

Commit 3b4861e

Browse files
committed
Clarification of default socket flags used by Rust
1 parent 497ee32 commit 3b4861e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/std/src/net/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
//! * [`ToSocketAddrs`] is a trait that used for generic address resolution when interacting
1515
//! with networking objects like [`TcpListener`], [`TcpStream`] or [`UdpSocket`]
1616
//! * Other types are return or parameter types for various methods in this module
17+
//!
18+
//! Rust disables inheritance of socket objects to child processes by default when possible. For
19+
//! example, through the use of the `CLOEXEC` flag in UNIX systems or the `HANDLE_FLAG_INHERIT`
20+
//! flag on Windows.
1721
1822
#![stable(feature = "rust1", since = "1.0.0")]
1923

0 commit comments

Comments
 (0)