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

Function pid_alive

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

Source from the content-addressed store, hash-verified

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

Callers 1

replay_crashed_claimMethod · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected