MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / pid_alive

Function pid_alive

atomic-agent/src/turn/session.rs:1449–1451  ·  view source on GitHub ↗
(pid: u64)

Source from the content-addressed store, hash-verified

1447/// whose writer is gone belongs to a crashed consumer and is replayed.
1448#[cfg(unix)]
1449fn pid_alive(pid: u64) -> bool {
1450 std::path::Path::new("/proc").join(pid.to_string()).exists()
1451}
1452
1453// Tests
1454

Callers 1

replay_crashed_claimMethod · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected