pub fn fds_to_close_after_exec(&mut self, t: &mut RecordTask) -> Vec<i32> {
        ed_assert!(t, self.task_set().has(t.weak_self_ptr()));

        let mut fds_to_close: Vec<i32> = Vec::new();
        for &fd in self.fds.keys() {
            if !is_fd_open(t, fd) {
                fds_to_close.push(fd);
            }
        }
        for &fd in &fds_to_close {
            self.did_close(fd, t);
        }

        fds_to_close
    }
/// Get list of fds that have been closed after `t` has done an execve.
/// Rather than tracking CLOEXEC flags (which would be complicated), we just
/// scan /proc/<pid>/fd during recording and note any monitored fds that have
/// been closed.
/// This also updates our table to match reality.
Get list of fds that have been closed after `t` has done an execve.
Rather than tracking CLOEXEC flags (which would be complicated), we just
scan /proc//fd during recording and note any monitored fds that have
been closed.
This also updates our table to match reality.
Get list of fds that have been closed after ` t ` has done an execve . Rather than tracking CLOEXEC flags ( which would be complicated ) we just scan / proc // fd during recording and note any monitored fds that have been closed . This also updates our table to match reality .
pub fn fds_to_close_after_exec(&mut self, t: &mut RecordTask) -> Vec<i32> {
        ed_assert!(t, self.task_set().has(t.weak_self_ptr()));
        let mut fds_to_close: Vec<i32> = Vec::new();
        for &fd in self.fds.keys() {
            if !is_fd_open(t, fd) {
                fds_to_close.push(fd);
            }
        }
        for &fd in &fds_to_close {
            self.did_close(fd, t);
        }
        fds_to_close
    }
pub fn fds_to_close_after_exec ( & mut self , t : & mut RecordTask ) -> Vec < i32 > { ed_assert ! ( t self task_set ( ) has ( t weak_self_ptr ( ) ) ) ; let mut fds_to_close : Vec < i32 > = Vec :: new ( ) ; for & fd in self . fds . keys ( ) { if ! is_fd_open ( t , fd ) { fds_to_close . push ( fd ) ; } } for & fd in & fds_to_close { self . did_close ( fd , t ) ; } fds_to_close }
Get list of fds that have been closed after `t` has done an execve.
Get list of fds that have been closed after ` t ` has done an execve .
&mut self
t
&mut RecordTask