(target: &str, socket_path: &Path)
| 807 | } |
| 808 | |
| 809 | fn verify_launchd_started(target: &str, socket_path: &Path) -> Result<()> { |
| 810 | if daemon_socket_state(socket_path) == DaemonSocketState::Connectable { |
| 811 | return Ok(()); |
| 812 | } |
| 813 | run_launchctl(&["print", target]).map(|_| ()) |
| 814 | } |
| 815 | |
| 816 | fn launchctl_spawn(args: &[&str]) -> Result<std::process::Output> { |
| 817 | Command::new("launchctl") |
no test coverage detected