Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sys::unix::fd::FileDesc::drop
1 parent a86fd0f commit ecc9025Copy full SHA for ecc9025
std/src/os/fd/owned.rs
@@ -175,6 +175,11 @@ impl Drop for OwnedFd {
175
// the file descriptor was closed or not, and if we retried (for
176
// something like EINTR), we might close another valid file descriptor
177
// opened after we closed ours.
178
+ // However, this is usually justified, as some of the major Unices
179
+ // do make sure to always close the FD, even when `close()` is interrupted,
180
+ // and the scenario is rare to begin with.
181
+ // Helpful link to an epic discussion by POSIX workgroup:
182
+ // http://austingroupbugs.net/view.php?id=529
183
#[cfg(not(target_os = "hermit"))]
184
{
185
#[cfg(unix)]
0 commit comments