-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
P2Priority ImportantPriority ImportantbugSomething isn't workingSomething isn't workingsafetySomething can lead to memory-unsafenessSomething can lead to memory-unsafeness
Description
RawFdContainer
allows to wrap and close arbitrary file descriptors, which does not seem very safe. In fact, the standard library has this, where the from_raw_fd
method is unsafe.
The solution would be to make RawFdContainer::new
unsafe, remove impl<T: IntoRawFd> From<T> for RawFdContainer
, and possibly implement std::os::unix::io::FromRawFd
for RawFdContainer
.
Metadata
Metadata
Assignees
Labels
P2Priority ImportantPriority ImportantbugSomething isn't workingSomething isn't workingsafetySomething can lead to memory-unsafenessSomething can lead to memory-unsafeness