Skip to main content

reply_fd

Function reply_fd 

Source
pub fn reply_fd(listener: i32, id: u64, fd: i32, cloexec: bool)
Expand description

Installs fd into the tracee and completes the syscall with its number.

Closes the supervisor’s copy of fd afterwards.

§Arguments

  • listener - Listener descriptor.
  • id - Notification id.
  • fd - Supervisor-side descriptor to hand over.
  • cloexec - Set O_CLOEXEC on the tracee’s copy.