1
Fork 0

io safety: update Unix explanation

This commit is contained in:
Ralf Jung 2024-04-26 19:04:23 +02:00
parent 9adafa7f8d
commit 6b6bc9805d
2 changed files with 22 additions and 11 deletions

View file

@ -266,7 +266,7 @@
//! its file descriptors with no operations being performed by any other part of the program.
//!
//! Note that exclusive ownership of a file descriptor does *not* imply exclusive ownership of the
//! underlying kernel object that the file descriptor references (also called "file description" on
//! underlying kernel object that the file descriptor references (also called "open file description" on
//! some operating systems). File descriptors basically work like [`Arc`]: when you receive an owned
//! file descriptor, you cannot know whether there are any other file descriptors that reference the
//! same kernel object. However, when you create a new kernel object, you know that you are holding