MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / process_exists

Function process_exists

packages/server/src/main.rs:1819–1827  ·  view source on GitHub ↗
(pid: u32)

Source from the content-addressed store, hash-verified

1817}
1818
1819fn process_exists(pid: u32) -> bool {
1820 ProcessCommand::new("kill")
1821 .arg("-0")
1822 .arg(pid.to_string())
1823 .stdout(Stdio::null())
1824 .stderr(Stdio::null())
1825 .status()
1826 .is_ok_and(|status| status.success())
1827}
1828
1829fn service_status() -> anyhow::Result<()> {
1830 if let Some(result) = service::active()? {

Callers 3

kill_all_servicesFunction · 0.70
wait_for_process_exitFunction · 0.70
service_statusFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected