(pid: u32)
| 574 | } |
| 575 | |
| 576 | fn process_exists(pid: u32) -> bool { |
| 577 | Command::new("kill") |
| 578 | .arg("-0") |
| 579 | .arg(pid.to_string()) |
| 580 | .stdout(std::process::Stdio::null()) |
| 581 | .stderr(std::process::Stdio::null()) |
| 582 | .status() |
| 583 | .is_ok_and(|status| status.success()) |
| 584 | } |
| 585 | |
| 586 | fn choose_service_port_for_bind(preferred: u16, bind: IpAddr) -> anyhow::Result<u16> { |
| 587 | let port = preferred.max(1024); |
no outgoing calls
no test coverage detected