Skip to main content

adopt_legacy_env

Function adopt_legacy_env 

Source
pub fn adopt_legacy_env()
Expand description

Copy every AV_* variable to its PV_* name when that name is unset, and say so on stderr (names only, never values).

Call this first thing in main, before any thread is started: changing the environment while another thread reads it is not safe on every platform.