mirror of
https://github.com/apple/container.git
synced 2026-10-11 16:51:39 +00:00
- `launchctl list` does not work as expected in the sandbox. - Probe with `launchctl print <domain>/<label>` instead, which launchd does allow a sandboxed process, and key off exit codes: 0 means registered, 113 (ENOSERVICE) means not registered, and anything else is an error rather than being mistranslated into a negative. - The probe is advisory in `system status`, so an indeterminate answer falls through to the XPC health check, whose success is authoritative. Signed-off-by: Renlord Yang <renlord@apple.com>