Skip to main content

stream_watcher_spawn

Function stream_watcher_spawn 

Source
pub(crate) fn stream_watcher_spawn(obj: &Object) -> Result<Daemon>
Expand description

Forward the BPF stdout/stderr streams of every program in the object to the scheduler’s stdout and stderr respectively, and abort when the kernel reports an error on a stderr stream. Nothing reads these streams otherwise, so messages would be silently dropped. Lines prefixed “IGN: “ are dropped instead of forwarded, for prints with side effects that nobody needs to see, the arena association print in scx_arena_subprog_init() for example. Called from ArenaLib::setup(), the watcher is owned by the returned ArenaLib.