pub fn send_bytes_with_fds(
stream: &UnixStream,
data: &[&[u8]],
fds: &[RawFd],
) -> Result<()>Expand description
Send data on a Unix stream with file descriptors attached, so the
receiver reads both in one message.
This is the guest→host direction of descriptor passing (the host’s
process::recv_bytes_with_fds mirrors it). Descriptors and frame bytes
travel together: when a HostExecV2 request arrives, the host has the
stdio descriptors before it parses the frame. Retries on EINTR.