fn connect_pipe_end(&mut self, pe: PipeEnd, file_no: libc::c_int) {
        assert!(file_no == libc::STDIN_FILENO || file_no == libc::STDOUT_FILENO);

        let res = unsafe { libc::dup2(self.fds[pe as usize], file_no) };
        if res == -1 {
            panic!("Connecting {:?}-end of Pipe with {} failed! {}", pe, file_no, errno::errno())
        }
    }
/// Connects a pipe end with another file descriptor.
Connects a pipe end with another file descriptor.
Connects a pipe end with another file descriptor .
fn connect_pipe_end(&mut self, pe: PipeEnd, file_no: libc::c_int) {
        assert!(file_no == libc::STDIN_FILENO || file_no == libc::STDOUT_FILENO);
        let res = unsafe { libc::dup2(self.fds[pe as usize], file_no) };
        if res == -1 {
            panic!("Connecting {:?}-end of Pipe with {} failed! {}", pe, file_no, errno::errno())
        }
    }
fn connect_pipe_end ( & mut self , pe : PipeEnd , file_no : libc :: c_int ) { assert ! ( file_no libc STDIN_FILENO file_no libc STDOUT_FILENO ) ; let res = unsafe { libc :: dup2 ( self . fds [ pe as usize ] , file_no ) } ; if res == - 1 { panic ! ( " " pe file_no errno errno ( ) ) } }
Connects a pipe end with another file descriptor.
Connects a pipe end with another file descriptor .
&mut self
pe
PipeEnd
file_no
libc::c_int
&mut self
pe
PipeEnd
file_no
libc::c_int