(cmd: &mut Command, provider_env: &HashMap<String, String>)
| 46 | } |
| 47 | |
| 48 | fn inject_provider_env(cmd: &mut Command, provider_env: &HashMap<String, String>) { |
| 49 | for (key, value) in provider_env { |
| 50 | if is_supervisor_only_env_var(key) { |
| 51 | continue; |
| 52 | } |
| 53 | cmd.env(key, value); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | #[cfg(unix)] |
| 58 | pub fn harden_child_process() -> Result<()> { |
no test coverage detected