Skip to main content

held_exit_dependency

Function held_exit_dependency 

Source
pub fn held_exit_dependency(
    fd_directory: &Path,
) -> Result<Option<(String, &'static str)>>
Expand description

The first descriptor listed in fd_directory (a /proc/<pid>/fd directory) that would make its holder serve another guest’s exit: its name in the directory and what it is. The in-guest runtime checks /proc/self/fd with it before installing Detcore. A directory that cannot be listed is an error, never a pass. Listed with crate::util::find_in_directory: this runs inside the guest, where std::fs::read_dir would leave the listing in the guest’s heap.