Skip to main content

initialize_process_path

Function initialize_process_path 

Source
pub fn initialize_process_path() -> &'static OsStr
Expand description

Compute and export AFT’s process PATH.

Call this during process startup, before AFT starts worker threads or async executors. Mutating process environment variables while other threads may be reading them is not safe on Unix, so later code should read the cached value with effective_path instead of calling this initializer again.