(printOutput: string)
| 317 | }; |
| 318 | |
| 319 | const parseLaunchctlPid = (printOutput: string): number | null => { |
| 320 | const match = printOutput.match(/\bpid\s*=\s*(\d+)/); |
| 321 | if (!match) return null; |
| 322 | const pid = Number.parseInt(match[1], 10); |
| 323 | return Number.isInteger(pid) && pid > 0 ? pid : null; |
| 324 | }; |
| 325 | |
| 326 | const makeLaunchdBackend = (): ServiceBackend => { |
| 327 | const serviceTarget = (uid: number): string => `gui/${uid}/${SERVICE_LABEL}`; |
no outgoing calls
no test coverage detected