Skip to main content

spawn_waitpid_thread

Function spawn_waitpid_thread 

Source
fn spawn_waitpid_thread<F: FnOnce() + Send + 'static>(f: F)
Expand description

Run a blocking waitpid on a dedicated thread. It blocks for the lifetime of the process, so it must not occupy a thread of the bounded blocking pool, which serves the file I/O of all containers. If no thread can be spawned, for example because of a pids limit, queue it on the pool rather than failing the wait.