Skip to main content

keep_host_status_files_open

Function keep_host_status_files_open 

Source
pub fn keep_host_status_files_open()
Expand description

Keep each traced thread’s /proc/<pid>/task/<tid>/status open in this process and re-read it with pread(2), instead of opening it for every signal-state read. Call it only from a process that never shares a guest’s descriptor table: Hermit’s own binary, at startup. Detcore linked into a guest (the in-guest runtimes) must never call it, or the kept descriptors would be the guest’s.