Skip to main content

send_fd

Function send_fd 

Source
pub fn send_fd(stream: &UnixStream, fd: RawFd) -> Result<()>
Expand description

Send a raw file descriptor over a connected Unix stream via SCM_RIGHTS.

Sends one dummy byte alongside the descriptor so the receiver can detect EOF. Retries on EINTR to prevent spurious session drops.