-
Notifications
You must be signed in to change notification settings - Fork 341
Closed
Description
async-std/src/os/unix/net/stream.rs
Lines 253 to 257 in dbc98fa
impl IntoRawFd for UnixStream { | |
fn into_raw_fd(self) -> RawFd { | |
self.as_raw_fd() | |
} | |
} |
.as_raw_fd
doesn't take the ownership of the fd, so the fd is closed when self
is dropped. This was #147 , which was fixed, then apparently reintroduced.
I thought I added a test case to catch this....
Metadata
Metadata
Assignees
Labels
No labels