pub fn close_peer_fd(fd: RawFd)
Close the peer end of a socketpair (host side, after spawning plugin).
fd must be a valid file descriptor that the caller owns.