fn io_read_ready(fd: c_int) -> bool {
    loop {
        use nix::poll::*;
        let info = PollFd::new(fd, EventFlags::POLLIN | EventFlags::POLLPRI);
        match poll(&mut [info], 0 /* timeout_ms */) {
            Err(::nix::Error::Sys(::nix::errno::Errno::EINTR)) => continue,
            Ok(n) => return n > 0,
            _ => return false,
        };
    }
}
// TODO: Move this somewhere else or get rid of it
Move this somewhere else or get rid of it
Move this somewhere else or get rid of it
fn io_read_ready(fd: c_int) -> bool {
    loop {
        use nix::poll::*;
        let info = PollFd::new(fd, EventFlags::POLLIN | EventFlags::POLLPRI);
        match poll(&mut [info], 0 /* timeout_ms */) {
            Err(::nix::Error::Sys(::nix::errno::Errno::EINTR)) => continue,
            Ok(n) => return n > 0,
            _ => return false,
        };
    }
}
fn io_read_ready ( fd : c_int ) -> bool { loop { use nix :: poll :: * ; let info = PollFd :: new ( fd , EventFlags :: POLLIN | EventFlags :: POLLPRI ) ; match poll ( & mut [ info ] , 0 /* timeout_ms */ ) { Err ( :: nix :: Error :: Sys ( :: nix :: errno :: Errno :: EINTR ) ) => continue , Ok ( n ) => return n > 0 , _ => return false , } ; } }
TODO: Move this somewhere else or get rid of it
TODO : Move this somewhere else or get rid of it
fd
c_int
fd
c_int