(pid: u32)
| 1817 | } |
| 1818 | |
| 1819 | fn 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 | |
| 1829 | fn service_status() -> anyhow::Result<()> { |
| 1830 | if let Some(result) = service::active()? { |
no outgoing calls
no test coverage detected