-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use OwnedFd and don't implement Clone.
Cloning a vsock stream results in two copies of the same file descriptor, which could result in it being closed twice when they are dropped. Instead, use an OwnedFd, and have try_clone duplicate it.
- Loading branch information
Showing
1 changed file
with
61 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters