refactor(mio): close FDs via std instead of rustix

Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
This commit is contained in:
Martin Kröning
2024-10-09 19:00:46 +02:00
parent 939d216027
commit 19b31bcdf0

View File

@@ -3,7 +3,7 @@ use std::{
collections::VecDeque,
io::Read,
marker::PhantomData,
os::fd::OwnedFd,
os::fd::{FromRawFd, OwnedFd},
};
use uds::UnixStreamExt as FdPassingExt;
@@ -115,7 +115,7 @@ where
// Close the remaining fds
for fd in fd_iter {
unsafe { rustix::io::close(*fd) };
unsafe { drop(OwnedFd::from_raw_fd(*fd)) };
}
claim_fd_result