Skip to content

Commit

Permalink
Rollup merge of #88805 - krhancoc:master, r=dtolnay
Browse files Browse the repository at this point in the history
Clarification of default socket flags

This PR outlines the decision to disable inheritance of socket objects when possible to child processes in the documentation.
  • Loading branch information
Dylan-DPC authored Mar 4, 2022
2 parents 40d3040 + a10f095 commit 4c70200
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/std/src/net/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

Expand Down

0 comments on commit 4c70200

Please sign in to comment.