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

Function forward_pid_path

crates/openshell-core/src/forward.rs:25–27  ·  view source on GitHub ↗

PID file path for a specific sandbox + port forward.

(name: &str, port: u16)

Source from the content-addressed store, hash-verified

23
24/// PID file path for a specific sandbox + port forward.
25pub fn forward_pid_path(name: &str, port: u16) -> Result<PathBuf> {
26 Ok(forward_pid_dir()?.join(format!("{name}-{port}.pid")))
27}
28
29/// Write a PID file for a background forward.
30///

Calls 1

forward_pid_dirFunction · 0.85