MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / spawn

Method spawn

crates/openshell-supervisor-process/src/process.rs:440–460  ·  view source on GitHub ↗
(
        program: &str,
        args: &[String],
        workdir: Option<&str>,
        interactive: bool,
        policy: &SandboxPolicy,
        netns: Option<&NetworkNamespace>,
        ca_paths: 

Source from the content-addressed store, hash-verified

438 #[cfg(target_os = "linux")]
439 #[allow(clippy::too_many_arguments)]
440 pub fn spawn(
441 program: &str,
442 args: &[String],
443 workdir: Option<&str>,
444 interactive: bool,
445 policy: &SandboxPolicy,
446 netns: Option<&NetworkNamespace>,
447 ca_paths: Option<&(PathBuf, PathBuf)>,
448 provider_env: &HashMap<String, String>,
449 ) -> Result<Self> {
450 Self::spawn_impl(
451 program,
452 args,
453 workdir,
454 interactive,
455 policy,
456 netns.and_then(NetworkNamespace::ns_fd),
457 ca_paths,
458 provider_env,
459 )
460 }
461
462 /// Spawn a new process (non-Linux platforms).
463 ///

Calls

no outgoing calls