You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
876059cfe0
Previously all of the into_raw_fd implementations only returns a copy of the inner RawFd, while still holding the ownership of the file descriptor when returning for into_raw_fd. Since `self` is dropped at the end of into_raw_fd, the returned file descriptor will actually be closed, render the function unuseable. The patch makes sure that into_raw_fd actually takes the ownership of the file descriptor all the way from the inner IoHandle. To achieve this, I have to use an Option in IoHandle to store the I/O source. It's not pretty, but I cannot come up with a better way. |
5 years ago | |
---|---|---|
.. | ||
addr.rs | 5 years ago | |
block_on.rs | 5 years ago | |
io_timeout.rs | 5 years ago | |
mutex.rs | 5 years ago | |
rwlock.rs | 5 years ago | |
task_local.rs | 5 years ago | |
tcp.rs | 5 years ago | |
udp.rs | 5 years ago | |
uds.rs | 5 years ago |