mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Previously, `into_raw_fd()` transferred fd ownership to epoll while keeping separate clones in `reader` and `writer`, causing leaks when the stream was closed. Now, `reader` owns the fd and epoll borrows it. When the FD is closed in the kernel, reader will be reset to None. Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>