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

Function is_reachable_unix_socket

crates/openshell-core/src/config.rs:298–300  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

296
297#[cfg(all(unix, test))]
298fn is_reachable_unix_socket(path: &Path) -> bool {
299 is_unix_socket(path) && std::os::unix::net::UnixStream::connect(path).is_ok()
300}
301
302#[cfg(all(unix, target_os = "linux"))]
303fn current_uid() -> u32 {

Callers

nothing calls this directly

Calls 2

is_unix_socketFunction · 0.85
connectFunction · 0.85

Tested by

no test coverage detected